-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (38 loc) · 2.06 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
<!DOCTYPE html>
<html>
<head>
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<script src="//cdn.rawgit.com/donmccurdy/aframe-physics-system/v3.1.2/dist/aframe-physics-system.min.js"></script>
<script src="script.js"></script>
</head>
<body>
<!--Change wall color-->
<a-scene>
<a-assets>
<img id="wood" src="images/wood_panel.jpg">
</a-assets>
<!--camera-->
<a-entity reset position="-25.018 2.106 28.03" id="camera">
<a-camera reset kinematic-body universal-controls wasd-controls="acceleration: 1000">
<a-cursor></a-cursor>
</a-camera>
</a-entity>
<!--walls-->
<a-plane reset id="front" feet src="images/wall.jpg" height="40" width="70" position="-2.168 0 -23.538"></a-plane>
<a-plane reset id="left" color="#bbc3cc" height="40" width="80" position="-37.005 0 15.942" rotation="0 90 0"></a-plane>
<a-plane reset id="right" color="#bbc3cc" height="40" width="100" position="32.159 0 24" rotation="0 -90 0" change-color-on-hover="color: blue"></a-plane>
<a-plane id="back" color="aquamarine" height="40" width="70" position="-2.150 0 44.604" rotation="0.458 -180 -180"></a-plane>
<!--floor-->
<a-plane static-body change-height id="floor" material="src:#wood" height="105" width="105" position="15.036 -15.050 -7.244" rotation="-90 -180 0"></a-plane>
<!--Piano-->
<a-assets>
<a-asset-item id="pianoobj" src="models/piano.obj"></a-asset-item>
<a-asset-item id="pianomtl" src="models/piano.mtl"></a-asset-item>
<a-asset-item id="trophyobj" src="models/trophy.obj"></a-asset-item>
<a-asset-item id="trophymtl" src="models/trophy.mtl"></a-asset-item>
</a-assets>
<a-obj-model static-double src="#pianoobj" side="double" mtl="#pianomtl" position="10 0 -8" scale="1 1 1"></a-obj-model>
<a-obj-model dynamic-body src="#trophyobj" mtl="#trophymtl" position="-8 -10 -8" scale="2 2 2"></a-obj-model>
</a-scene>
</body>
</html>