-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
158 lines (138 loc) · 6.94 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<html>
<head>
<title>LD37</title>
<script src="lib/aframe.js"></script>
<script src="lib/aframe-html-shader.js"></script>
<script src="lib/aframe-extras.controls.min.js"></script>
<script src="lib/aframe-physics-system.min.js"></script>
<script src="lib/aframe-extras.misc.min.js"></script>
<link rel="stylesheet" href="./index.css" type="text/css"></link>
</head>
<body>
<div class="screen" id="screen">
>
</div>
<div class="screen off" id="wall_screen_1">
</div>
<div class="screen off" id="wall_screen_2">
</div>
<div class="screen off" id="wall_screen_3">
</div>
<a-scene physics vr-mode-ui="enabled: false">
<a-assets>
<a-asset-item id="monitor-obj" src="assets/models/monitor.obj"></a-asset-item>
<a-asset-item id="monitor-mtl" src="assets/materials/monitor.mtl"></a-asset-item>
<a-asset-item id="desk-obj" src="assets/models/Table.obj"></a-asset-item>
<a-asset-item id="desk-mtl" src="assets/materials/Table.mtl"></a-asset-item>
<a-asset-item id="door-obj" src="assets/models/door.obj"></a-asset-item>
<a-asset-item id="door-mtl" src="assets/materials/door.mtl"></a-asset-item>
<img src="./assets/Textures/desk.JPG" id="desk_texture" crossorigin="anonymous">
<img src="./assets/Textures/numpad_sketch_postit.png" id="numpad_sketch_texture" crossorigin="anonymous">
<img id="door_texture" src="./assets/Textures/door.png" crossorigin="anonymous">
<a-mixin id="wall"
material="src: url(./assets/Textures/Plaster_A.png); repeat: 2 2; metalness:0.1; roughness: 1"></a-mixin>
<a-mixin id="floor"
material="src: url(./assets/Textures/Fabric_A.png); repeat: 2 2; metalness:0.1; roughness: 1"></a-mixin>
<a-mixin id="ceiling"
material="src: url(./assets/Textures/Concrete_A.png); repeat: 2 2; metalness:0.1; roughness: 1"></a-mixin>
<audio id="computer_on" src="./assets/audio/computer on.mp3"></audio>
<audio id="invalid_input" src="./assets/audio/invalid input.mp3"></audio>
<audio id="valid_input" src="./assets/audio/valid input.mp3"></audio>
<audio id="click1" src="./assets/audio/finished click 1.mp3"></audio>
<audio id="click2" src="./assets/audio/finished click 2.mp3"></audio>
<audio id="click3" src="./assets/audio/finished click 3.mp3"></audio>
<audio id="fan" src="./assets/audio/raw computer fan.mp3"></audio>
<audio id="disk_spin" src="./assets/audio/disk drive spinning.mp3"></audio>
<audio id="roverboard" src="./assets/audio/ROVERBOARD_WITH_BARK.mp3"></audio>
<audio id="hoversword" src="./assets/audio/HOVERSWORD.mp3"></audio>
</a-assets>
<a-entity id="desk" rotation="0 0 0" position="0 0.5 0" obj-model="obj: #desk-obj" scale="6 6 6" material="src: #desk_texture"
static-body="shape: box"></a-entity>
<a-entity id="numpad" rotation="0 0 0" position="0 1 0.3" obj-model="obj: #numpad-obj; mtl: #numpad-mtl" scale="0.1 0.1 0.1"></a-entity>
<a-entity id="display"
scale="0.5 0.5 0.5" position="0 0.83 0">
<a-entity id="error_sound" sound="src: #invalid_input; volume: 0.4; poolSize: 3"></a-entity>
<a-entity id="success_sound" sound="src: #valid_input; volume: 0.2; poolSize: 3"></a-entity>
<a-entity id="click1_sound" sound="src: #click1; volume: 0.5; poolSize: 3"></a-entity>
<a-entity id="click2_sound" sound="src: #click2; volume: 0.5; poolSize: 3"></a-entity>
<a-entity id="click3_sound" sound="src: #click3; volume: 0.5; poolSize: 3"></a-entity>
<a-entity id="boot_sound" sound="src: #computer_on; volume: 0.4; autoplay: true"></a-entity>
<a-entity id="fan_sound" sound="src: #fan; volume: 0.8; autoplay: true; loop: true"></a-entity>
<a-entity id="disk_spin_sound" sound="src: #disk_spin; volume: 1"></a-entity>
<a-entity rotation="0 -90 0" position="0 2.2 0" obj-model="obj: #monitor-obj; mtl: #monitor-mtl"></a-entity>
<a-entity id="roverboard_sound" sound="src: #roverboard; volume: 0.5; loop: true"></a-entity>
<a-entity id="hoversword_sound" sound="src: #hoversword; volume: 0.5; loop: true"></a-entity>
<a-plane id="monitor_screen" rotation="0 0 0" position="0 2.2 0.015" width="3.92" height="1.7" material="shader:html;target:#screen;transparent:false;fps:0"></a-plane>
</a-entity>
<a-entity id="door"
rotation="0 0 0"
position="0 0 6.5"
scale="0.008 0.008 0.008"
obj-model="obj: #door-obj; mtl: #door-mtl">
</a-entity>
<a-plane id="wall_screen_1_plane" rotation="0 0 0" position="-4.4 2.2 -6.49" width="3.92" height="1.7" material="shader:html;target:#wall_screen_1;transparent:false;fps:0"></a-plane>
<a-plane id="wall_screen_2_plane" rotation="0 0 0" position="0 2.2 -6.49" width="3.92" height="1.7" material="shader:html;target:#wall_screen_2;transparent:false;fps:0"></a-plane>
<a-plane id="wall_screen_3_plane" rotation="0 0 0" position="4.4 2.2 -6.49" width="3.92" height="1.7" material="shader:html;target:#wall_screen_3;transparent:false;fps:0"></a-plane>
<a-entity id="numpad_sketch"
position="0 1.2 -0.06"
rotation="0 0 0"
geometry="primitive: plane; width: 0.3; height: 0.3;" rotation="-90 0 0"
material="src:#numpad_sketch_texture; shader:flat; transparent: true; metalness:0.6; roughness: 1">
</a-entity>
<a-box class="wall" id="back_wall"
position="0 3.5 -7"
width=14
height=7
depth=1
static-body
mixin="wall"></a-box>
<a-box class="wall" id="front_wall"
position="0 3.5 7"
width=14
height=7
depth=1
static-body
mixin="wall"></a-box>
<a-box class="wall" id="left_wall"
position="-7 3.5 0"
width=1
height=7
depth=14
static-body
mixin="wall"></a-box>
<a-box class="wall" id="right_wall"
position="7 3.5 0"
width=1
height=7
depth=14
static-body
mixin="wall"></a-box>
<a-box class="wall" id="ceiling"
position="0 7 0"
width=14
height=1
depth=14
static-body
mixin="ceiling"></a-box>
<a-box class="wall" id="floor"
position="0 -1 0"
width=14
height=2
depth=14
static-body
mixin="floor"></a-box>
<a-entity
camera="fov:60"
universal-controls
kinematic-body="radius:0.5"
position="0 1.6 5">
</a-entity>
<a-sky material="color: blue" rotation="0 -90 0"></a-sky>
<a-entity id="numpad_light"
position="0 6 2"
light="color: #fff00; distance: 15; intensity: 0.6; type: point"></a-entity>
</a-scene>
<script src="index.js"></script>
<script src="audio.js"></script>
</body>
</html>