-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (82 loc) · 4.26 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<html>
<head>
<title>Graveyard of My Fallen Heroes</title>
<link rel="icon" type="image/x-icon" href="assets/lettuce.jpg">
<script src="https://aframe.io/releases/1.4.0/aframe.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-look-at-component.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/[email protected]/dist/aframe-extras.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/c-frame/[email protected]/dist/aframe-physics-system.min.js"></script>
<script src="scripts/lamp-script.js"></script>
<script src="scripts/fall-on-touch.js"></script>
<script src="scripts/switch-1.js"></script>
<script src="scripts/rain.js"></script>
<script src="scripts/cloud.js"></script>
<script src="scripts/staticCloud.js"></script>
<script src="scripts/camera.js"></script>
<script src="scripts/index.js"></script>
<script src="https://kit.fontawesome.com/df8ef38841.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="index.css">
</head>
<body>
<a-scene add-lamps rain cloud static-cloud
physics="debug: false; friction: 0.1; restitution: 0.5;"
background="color: black"
fog="type: exponential;
color: gray;
density: 0.01;">
<a-entity id="camera-entity" camera-listener position="0 0 0" rotation="0 0 0">
<a-camera
static-body="mass: 1"
position="0 1 0"
rotation="0 180 0"
wasd-controls="acceleration: 100"
cursor-visible="true"
cursor-scale="2"
cursor-color="#0095DD"
cursor-opacity="0.5">
<a-cursor></a-cursor>
</a-camera>
</a-entity>
<a-sky radius="900" color="black"></a-sky>
<!--objects-->
<!--<a-torus-knot fall-on-touch
arc="180" p="2" q="7" radius="5" radius-tubular="1" position="0 0 10"
shadow="cast: true; receive: true;"
material="color: cyan; transparent: true; opacity: 1"
animation="property: rotation; to: 0 0 360; loop: true; easing: linear; dur: 25000"></a-torus-knot>
<a-torus-knot fall-on-touch
arc="180" p="2" q="7" radius="5" radius-tubular=".1"
src="#gradient1"
position="1 4 -2" rotation="0 0 0" color= "#ffffff"
shadow="cast: true; receive: true;"
material="transparent: true; opacity: 1"
animation="property: rotation; to: 0 0 360; loop: true; easing: linear; dur: 25000"></a-torus-knot>-->
<!--lights-->
<a-light id="blue-ambience" type="ambient" intensity="0" color="#0009ff"></a-light>
<a-light color="#FFFFFF" intensity="0" position="20 10 20"></a-light>
<a-plane switch-1 static-body color="gray" rotation="-90 0 0" scale="800 800 1" position="0 -15 0" shadow="receive: true"></a-plane>
</a-scene>
<div class="menu" id="menu">
<div class="controls-container">
<div class="controls-text">Look</div>
<img src="assets/mouse.svg" alt="WASD" width="40px"/>
</div>
<div class="controls-container">
<div class="controls-text">Move</div>
<div>
<img src="assets/wasd.svg" alt="WASD" width="200px" style="margin-right: 10px;"/>
<img src="assets/arrows.svg" alt="WASD" width="200px" style="margin-left: 10px;"/>
</div>
</div>
<div class="controls-container">
<div class="controls-text">Warp</div>
<img src="assets/space.svg" alt="WASD" width="230px"/>
</div>
</div>
<div class="menu-btn" id="menu-btn">
<div class="menu-btn-border">
<i class="fa-solid fa-gamepad"></i>
</div>
</div>
</body>
</html>