-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·53 lines (43 loc) · 1.46 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>APCSP Aliens</title>
<meta name="description" content="APCSP Aliens">
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="js/constants.js"></script>
<script src="js/starSpin.js"></script>
</head>
<body>
<!-- Main scene definition. scene-slime-controller defines slimes and -->
<!-- determines when the next slime should appear -->
<a-scene id="scene">
<!-- Pre-defined assets -->
<a-assets>
<!-- Ninja star 3D-model file -->
<a-asset-item id="c-star-dae" src="assets/Shuriken-sketchup.dae"></a-asset-item>
<!-- Audio files -->
<audio id="swoosh" src="assets/swoosh.wav"></audio>
</a-assets>
<!-- Create the surrounding environment -->
<a-sky material="color: #CCFFFF"></a-sky>
<a-entity id="ground"
geometry="primitive: plane; width: 500; height: 150"
position="0 -1 -25"
material="color: rgb(253,132,59)"
rotation="-90 0 0">
</a-entity>
<a-entity star-spin
id="star"
collada-model="#c-star-dae"
position="0 1 -2"
scale="0.4 0.4 0.4">
</a-entity>
<a-entity camera look-controls
id="camera"
position="0 2 0"
rotation="0 0 0">
</a-entity>
</a-scene>
</body>
</html>