-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
57 lines (49 loc) · 1.88 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
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no,user-scalable=no,maximum-scale=1">
<title>Cross the Road</title>
<script src="js/aframe.min.0.5.0.js"></script>
<script src="js/aframe-extras.min.3.8.3.js"></script>
</head>
<body>
<a-scene fog="type: exponential; color: navy; density: 0.06;">
<!-- player -->
<a-entity id='player'
camera="userHeight: 1.6"
universal-controls
kinematic-body
jump-ability
gamepad-controls
keyboard-controls
position="0 2 0"></a-entity>
<!-- environment -->
<a-sky color="#FFF"></a-sky>
<a-ocean width="50" depth="50" density="40"></a-ocean>
<a-grid position='0 -5 0' static-body></a-grid>
<!-- start plate -->
<a-box id="start"
color="#39BB82"
width="10" height="0.25" depth="4"
position="0 1 0"
static-body></a-box>
<!-- goal plate -->
<a-box id="goal"
color="#39BB82"
width="10" height="0.25" depth="4"
position="0 1 -12"
static-body></a-box>
<!-- lighting -->
<a-light type="ambient" color="#bbb"></a-light>
<a-light color="#ccc" position="0 30 0" distance="100" intensity="0.4" type="point"></a-light>
<a-light color="#ccc" position="3 10 -10" distance="50" intensity="0.4" type="point"></a-light>
</a-scene>
<!-- bottom scripts -->
<script src='js/app.js'></script>
<!-- proxy control -->
<div class='proxy-control'></div>
<script src="proxy-control/aframe-proxy-controls.min.js"></script>
<script src='proxy-control/app.js'></script>
</body>
</html>