-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
360 lines (324 loc) · 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
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<!DOCTYPE html>
<html>
<head>
<title>Road.</title>
<meta name="description" content="Road.">
<!-- Included components -->
<script src="https://aframe.io/releases/0.7.0/aframe.min.js"></script>
<script src="https://rawgit.com/feiss/aframe-environment-component/master/dist/aframe-environment-component.min.js"></script>
<script src="https://unpkg.com/aframe-animation-component/dist/aframe-animation-component.min.js"></script>
<script src="https://cdn.rawgit.com/zcanter/aframe-gradient-sky/master/dist/gradientsky.min.js"></script>
<script src="https://npmcdn.com/aframe-event-set-component@3.0.1"></script>
<script src="https://npmcdn.com/aframe-template-component@3.1.1"></script>
<script src="https://unpkg.com/aframe-text-geometry-component@^0.5.0/dist/aframe-text-geometry-component.min.js"></script>
<script src="components/includes.js"></script>
<!-- My files -->
<script src="components/colors.js"></script>
<script src="components/entity-generator.js"></script>
<script src="components/managers.js"></script>
<script src="components/rng.js"></script>
<script src="components/stuff.js"></script>
<script src="components/worldbuilders.js"></script>
<!-- Custom shaders -->
<script src="shaders.js"></script>
<!-- Main menu buttons -->
<script id="about-link" type="text/html">
<a-entity class="link"
geometry="primitive: circle; radius: 4"
material="shader: flat; src: ${thumb}; side: double; opacity: 0.6"
menu-item="action: about">
</a-entity>
</script>
<script id="fractal-link" type="text/html">
<a-entity class="link" id="fractal"
rng-fractal-shader="width: 8;"
menu-item="action: surround; infotext: Enjoy this crazy fractal thing.
It will do plenty on its own, but the controls add even more variety.\n
Hit the toggle button below to toggle this window.
Hit the main menu button below to return to the main menu.\n
Keyboard controls:\n
Q : Move time forward
E : Move time backward \n
Z : Zoom in
X : Zoom out\n
C : Shatter
V : Reverse Shatter\n
N : Twist
M : Reverse Twist\n
B : Reset Shatter and Twist\n
R : Ripples (3D, try in VR!)
T : Turn off ripples\n
">
<a-entity
geometry="primitive: sphere; radius: 4.25;"
material="shader:flat; color: blue"
</a-entity>
</a-entity>
</script>
<script id="ganzfeld-link" type="text/html">
<a-entity class="link" id="ganzfeld"
ganzfeld="radius: 4.25"
menu-item="action: surround; infotext: Ganzfeld simulator:\n
The Ganzfeld effect is a perception 'illusion'
where a uniform field of color causes the brain to
fill in visuals, meaning simple hallucinations.\n
It works best when combined with white noise.
Simply pick a color (red and green work well),
turn on the noise, and wait.\n
Hit the toggle button below to toggle this window.
Hit the main menu button below to return to the main menu.\n
Keyboard controls:\n
G : Cycle color
H : Play/Pause noise
">
</a-entity>
</script>
<script id="main-link" type="text/html">
<a-entity class="link" id=main-button
geometry="primitive: box; width: 0.5; height: auto; depth: -0.1"
material="color: black; opacity: 0.75"
text="value: Main menu; width: 1.5; color: white; align: center"
menu-item="action: main; tag: main; active: false">
</a-entity>
<a-entity id="info-text"
geometry="primitive: plane; width: 1; height: 1.3"
position="0 0.9 0.2" rotation="20 0 0"
material="opacity: 0.75"
text="value: This shouldn't be here"
</a-entity>
</script>
<script id="toggle-link" type="text/html">
<a-entity class="link"
geometry="primitive: box; width: 0.5; height: auto; depth: -0.1"
material="color: black; opacity: 0.75"
text="value: Toggle info; width: 1.5; color: white; align: center"
menu-item="action: toggle; active: false">
</a-entity>
</script>
<script id="start-link" type="text/html">
<a-entity class="link" justrotate
rng-building-shader="height: 2; width: 1; color1: #FFFF00;
colorstyle: 1 0 0 0; static: 1 0; winwidth: 0 1 0; winheight: 0 0 1 0"
menu-item="action: start">
</a-entity>
</script>
<script id="begin-link" type="text/html">
<a-entity class="link" id="begin" visible="false"
material="shader: caustic-shader; resolution: 2; color: yellow; backgroundColor: black; speed: 0.3; brightness: 2"
text-geometry="value: Loading . . .; size: 0.025;"
menu-item="action: begin; active: false; tag: begin;">
<a-entity geometry="primitive: box; width: 0.22; height: 0.08; depth: 0.01"
position="0.1 0.02 0.05" material="shader: flat; opacity: 0;"></a-entity>
</a-entity>
</script>
</head>
<body>
<a-scene id="fog" fog="type: exponential; density: 0.035; color: #101010"
animation__fog="property: fog.density; easing: easeOutCirc; to: 0.0; dur: 40000; startEvents: beat">
<a-assets>
<img id="stars" crossorigin="anonymous" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fstarfield.png?1513307410255">
<img id="green" crossorigin="anonymous" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fgreenfield.jpg?1513824807936">
<img id="sunset" crossorigin="anonymous" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2FSunset1.jpg?1513822555974">
<img id="sunset2" crossorigin="anonymous" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fsunset_smudge.jpg?1513829169610">
<img id="sunsetblur" crossorigin="anonymous" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fsunset_blur.jpg?1513871737795">
<img id="milky" crossorigin="anonymous" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2F16025063950_61e0c94540_o.jpg?1513823844529">
<img id="convertible" crossorigin="anonymous" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2FConvertible%20Texture.png?1518654790714">
<img id="exbot" crossorigin="anonymous" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2FExbot2.jpg?1518661785572">
<a-asset-item id="optimerBoldFont" src="https://rawgit.com/mrdoob/three.js/dev/examples/fonts/optimer_bold.typeface.json"></a-asset-item>
<audio id="side" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fside-of-the-road%5BMp3-Gratis.eu%20-%20Download%20Free%20Mp3%5D.mp3?1514392665329"></audio>
<audio id="noise" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2F02-White-Noise-10min.mp3?1518906350264"></audio>
<audio id="click" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fbutton-click.mp3?1519576783848"></audio>
<audio id="swoop" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fbutton-start.mp3?1519577574614"></audio>
<audio id="tick" src="https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fbutton-tick.mp3?1519611977394"></audio>
<a-mixin id="clicksound" sound="on: click; src: #click"></a-mixin>
<a-mixin id="startsound" sound="on: click; src: #swoop"></a-mixin>
<a-mixin id="rainbow" rainbowcycle="speed: 3"></a-mixin>
<a-mixin id="alterColors" animation="property: material.color; dir: alternate; dur: 594.06; easing: easeInOutSine; loop: true; to: #FF00FF"></a-mixin>
<a-mixin id="scale" animation__scale= "property: scale; dir: alternate; dur: 297.03; easing: easeInSine; loop: true; to: 1.2 1 1.2" ></a-mixin>
<a-mixin id="cubes"
geometry="primitive: box; height: 0.5; width: 0.5; depth: 0.5"
material="color: #0000FF; shader: flat"
></a-mixin>
<a-mixin id="window"
material="color: #FFFF00; shader: flat"></a-mixin>
<a-mixin id="rect" mixin="window"
geometry="primitive: plane; width: 1; height: 2;"></a-mixin>
<a-mixin id="circle" mixin="window"
geometry="primitive: circle; radius: 0.75;"></a-mixin>
<a-mixin id="triangle" mixin="window" rotation="0 0 180"
geometry="primitive: triangle;" scale="3 3 2"></a-mixin>
<a-mixin id="diamond" mixin="window" rotation = "0 0 45"
geometry="primitive: plane; width: 1.5; height: 1.5" scale="1.25 1.25 1"></a-mixin>
<a-mixin id="bars" mixin="window" rotation = "0 0 0"
geometry="primitive: plane; width: 2.5; height: 1.5;"></a-mixin>
<a-mixin id="windows" entity-colors="mixin: rect; num: 4; color_type: flip; slower: 1; every: 2;
fromcolor: #00FF00; tocolor: #FF0000; alternate: false"
layout="type: box; columns: 2; marginRow: 4; marginColumn: 3">
</a-mixin>
<a-mixin id="buildingblock" entity-circle="mixin: windows; num: 3; axis: y; angle: 90;" layout="type: building; radius: 1"
geometry="primitive: box; width: 6.8; height: 7.5; depth: 6.8" material="color: #000000"></a-mixin>
<a-mixin id="building" building-builder></a-mixin>
<a-mixin id="roadash" geometry="primitive: plane; width:0.25; height:2" material="color: #ffdf00; shader: flat" rotation="0 0 90"></a-mixin>
<a-mixin id="spot" light="type: spot; castShadow: true; angle: 30; color: #FFFF00"></a-mixin>
<a-mixin id="lit" geometry="primitive:circle; radius: 5"
material="color: #fdffa3; shader:flat; opacity: 0.5 transparent:true; src:https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fwhiteblur.png?1513817944824"></a-mixin>
<a-mixin id="lcone" geometry="primitive:cone; radiusBottom: 3; height: 8" material="color: #fdffa3; opacity: 0.5"></a-mixin>
<a-mixin id="lamp" rotation="0 0 0" scale="2 2 2" gpoly="polyid:awUS2qoxeSa; API_KEY:AIzaSyAJ19aF1HSKdyzV4-OKtITR2MoKkSkh7rQ;"></a-mixin>
<a-mixin id="fliplamp" rotation="0 180 0" scale="2 2 2" gpoly="polyid:awUS2qoxeSa; API_KEY:AIzaSyAJ19aF1HSKdyzV4-OKtITR2MoKkSkh7rQ;"></a-mixin>
<a-mixin id="blur" scale="0.8 0.8" geometry="primitive:plane"
material="color: #fdffa3; shader:flat; transparent:true; src:https://cdn.glitch.com/c43f301b-a64d-4479-87e0-4646a6a065cb%2Fwhiteblur.png?1513817944824"></a-mixin>
<a-mixin id="car" crossorigin="anonymous" scale="0.025 0.025 0.025" gpoly="useMaterials: false; polyid: 8ACz9InIO0c; API_KEY: AIzaSyAJ19aF1HSKdyzV4-OKtITR2MoKkSkh7rQ;"></a-mixin>
<a-mixin id="gridpattern" material="side: double; shader: grid-shader; resolution: 65.0; intensity: 10.0; speed: 0.5; color: #00FFFF; backgroundColor: #001020"></a-mixin>
<a-mixin id="gridpattern2" material="side: double; shader: grid-shader; resolution: 250.0; intensity: 10.0; speed: 0.5; color: #FFFF00; backgroundColor: #101010"></a-mixin>
<a-mixin id="gridpatternsky" material="shader: grid-shader; resolution: 100.0; intensity: 10.0; speed: 0.5; color: white; backgroundColor: #000000"></a-mixin>
<!--
Comment section
entity-generator="mixin: window; num: 16; rainbow: true; speed: 10"
<a-mixin id="rotating" animation__rotate="property: rotation; easing: easeInOutSine; dir: alternate; dur: 8000; loop: true; to: 0 360 0"></a-mixin>
<a-entity slide="speed: 0" entity-generator="mixin: spot; num: 5" layout="type: line; margin: 10" position="0 0.75 -0.2" rotation="0 0 0" scale="5 5 5" src="#blur-image" color="#FFFF00"></a-entity>
<a-plane rainbowcycle="offset: 200; speed: 30" visible="false" position="2 0 -5" rotation="0 0 0" width="5" height="2" shader="flat" shadow></a-plane>
<a-sky visible="true" id="image-360" src="#green" radius="1000" rotation="30 0 0" position="0 0 0"></a-sky>
entity-generator="mixin: lamp blur, lcone lit"
-->
</a-assets>
<!-- Basic environment assets -->
<a-sky visible="true" id="sunsky" src="#sunsetblur" radius="5500" rotation="0 -60 0" position="0 -50 -2000"></a-sky>
<a-sky visible="true" id="starcolor" material="color:#FF00FF; opacity: 0" radius="5000" rotation="0 10 0" position="0 -50 -2000" class="beatlistener231"
animation__opacity="property: material.opacity; from: 0; to: 0.4; easing: easeInQuint; dur: 4752.472; startEvents: beat"></a-sky>
<a-sky visible="true" id="starsky" src="#stars" radius="9500" rotation="0 10 0" position="0 -50 -2800"></a-sky>
<a-entity light="type: ambient; intensity: 0.3; distance: 50; decay: 2" position="0 10 10"></a-entity>
<a-plane id="floorleft" position="2900 0 -4210" rotation="-90 0 0" width="5000" height="5000" color="#303030"></a-plane>
<a-plane id="flooright" position="-2900 0 -4210" rotation="-90 0 0" width="5000" height="5000" color="#303030"></a-plane>
<a-plane id="floor" position="0 0 0" rotation="-90 0 0" width="10000" height="3420" color="#303030"></a-plane>
<a-plane id="road" position="0 0.025 0" rotation="-90 0 0" width="8" height="3420" color="#606060"></a-plane>
<a-entity id="roadline1" followcamera="length:500; stopfollow: -1400; delete: -2200" slide
entity-colors="analyserEl: #analyser; max: 50; multiplier: 0.01;
mixin: roadash; num: 50; color_type: none; slower: 4; reverse: true;
audio_property: position; audio_levels: true; audio_buildup: 1;"
layout="type: line; margin: 10" position="0 0.05 -90" rotation="-90 90 0"></a-entity>
<a-entity id="roadline2" followcamera="length:500; stopfollow: -1400; delete: -2200" slide
entity-colors="analyserEl: #analyser; max: 50; multiplier: 0.01;
mixin: roadash; num: 50; color_type: none; slower: 4;
audio_property: position; audio_levels: true; audio_buildup: 1;"
layout="type: line; margin: 10" position="0 0.05 -90" rotation="-90 90 0"></a-entity>
<!-- comment starter -->
<a-entity id="streetlightsright" position="4 0 75" rotation="0 90 0" slide
entity-generator-merger="num: 6; mixins: blur, lamp, lcone, lit;
positions: 0 5.83 -0.4, 0 4.5 0, 0 2.2 -1.35, 0 0.1 -2;
rotations: 90 0 0, 0 0 0, 15 0 0, -90 0 0
layout_type:line; layout_margin: 50; flip_reverse: true"
followcamera="length: 250; stopfollow: -800; delete: -1000"></a-entity>
<a-entity id="streetlightsleft" position="-4 0 100" rotation="0 90 0" slide
entity-generator-merger="num: 6; mixins: blur, fliplamp, lcone, lit;
positions: 0 5.83 0.4, 0 4.5 0, 0 2.2 1.35, 0 0.1 2;
rotations: 90 0 0, 0 0 0, -15 0 0, -90 0 0
layout_type:line; layout_margin: 50; flip_delay: 0.25; flip_shift: 0"
followcamera="length: 250; stopfollow: -800; delete: -1000"></a-entity>
<a-plane id="blocker" timedinvisible class="beatlistener170" position="0 0 -1710" width="5000" height="15" color="#303030"></a-plane>
<a-plane id="gridleft" mixin="gridpattern2" position="-2500.75 -180 -4206.5" rotation="-90 0 0" width="-5000" height="5000"></a-plane>
<a-plane id="gridright" mixin="gridpattern2" position="2499.25 -180 -4206.5" rotation="-90 0 0" width="5000" height="5000"></a-plane>
<a-box id="boxleft" mixin="gridpattern" position="-2900 -2501 -4210" width="5000" height="5000" depth="-5000" class="beatlistener231"
animation__move="property: position; from: -2900 -2501 -4210; to: -2900 -2301 -4210; easing: easeInQuint; dur: 4752.472; startEvents: beat"></a-box>
<a-box id="boxright" mixin="gridpattern" position="2900 -2501 -4210" width="5000" height="5000" depth="5000" class="beatlistener231"
animation__move="property: position; from: 2900 -2501 -4210; to: 2900 -2301 -4210; easing: easeInQuint; dur: 4752.472; startEvents: beat"></a-box>
<a-box id="boxfront" mixin="gridpattern" position="0 -2501 -710" width="5000" height="5000" depth="2000" class="beatlistener231"
animation__move="property: position; from: 0 -2501 -710; to: 0 -2301 -710; easing: easeInQuint; dur: 4752.472; startEvents: beat"></a-box>
<a-box id="boxback" mixin="gridpattern" position="0 -2501 -7500" width="5000" height="5000" depth="5000" class="beatlistener231"
animation__move="property: position; from: 0 -2501 -7500; to: 0 -2301 -7500; easing: easeInQuint; dur: 4752.472; startEvents: beat"></a-box>
<!-- Structural components for Road -->
<a-entity id="movingWorld" visible="false" worldbuilder=" buildingfunction: movingCity;
blockx: 4; blockz: 10; grid: 30; buildgrids: false; loadmult: 1; loadslow: 5; stopfollow: -500; unload: -600"
animation__rise="property: position; from: -48 -12 -370; to: -48 0 -370; easing: easeInCubic; dur: 594.059; startEvents: beat"
class="beatlistener32" position = "-48 -12 -370" rotation = "0 0 0"></a-entity>
<a-entity id="colorWorld" visible="false" worldbuilder=" buildingfunction: colorCity;
blockx: 5; blockz: 15; numblockx: 4; numblockz: 4; gapwidth: 2;
widthprobs: 0.1 0.15 0.1 0.07 0.04; maxheight: 7; heightprobs: 1 1 1 1 1 1 1;
loadmult: 3.83; stopfollow: -450; unload: -900"
class="beatlistener116" rotation = "0 0 0" position="-62 -750 -1245" scale = "1 1 1"></a-entity>
<a-entity rng-building-snakes="load: 550; start: 230; unload: -450" position="-40 -180 -1900"></a-entity>
<a-entity rng-building-snakes="load: 750; start: 250; unload: -180" position="-40 -180 -2325"></a-entity>
<a-entity position="-600 -240 -1802.5"
rng-building-snake="width:8; height:45; speed: 0.35; triggerstart: 234; triggerspeed: 6; unload: -2550;
path:+x, +y, +x, +x, -y, -z, -x, -x, -z, -z, +x, -y"></a-entity>
<a-entity position="600 -320 -1840"
rng-building-snake="width:8; height:45; speed: 0.35; triggerstart: 234; triggerspeed: 6; unload: -2550;
path:-x, +y, -x, -x, -y, -z, +x, +x, -z, -z, -x, +y"></a-entity>
<a-entity id="ringportal" class="beatlistener319" position="0 0 -2514" geometry="primitive: torus; radius: 25; radiusTubular: 3" scale="0.01 0.01 0.01"
material="shader: grid-shader; speed: 1.0; intensity: 10.0; resolution: 5.0; color: white; backgroundColor: black"
animation__rotate="property: rotation; from: 0 0 0; to: 0 0 -360; loop: true; easing: linear; dur: 10000"
animation__scale="property: scale; from: 0.01 0.01 0.01; to: 1 1 1; easing: easeInOutQuart; dur: 2376.236; startEvents: beat"></a-entity>
<a-entity id="buildingportal" position="0 0 -2514" rotation="0 90 -90" scale="0.01 0.01 0.01"
rng-building-shader="side: double; speed: 0; width: 5; height: 7.5; static: 0 1; grow_slide: 1 0; action: portal; triggerbeat: 323;
grows: 1 0 0 0; winheight: 0 0 1 0; winwidth: 0 1 0; colorstyle: 0 0 0 1;"></a-entity>
<a-entity id="discotunnel" class="beatlistener335" rng-disco-tunnel position="0 0 -2607" scale="0.01 0.01 0.01"
animation__scale="property: scale; from: 0.01 0.01 0.01; to: 1 1 1; easing: easeInExpo; dur: 5000; startEvents: beat"></a-entity>
<a-entity id="electrictunnel" class="beatlistener335" position="0 0 -2687" scale="0.01 0.01 0.01" rotation="90 0 0"
geometry="primitive: cylinder; openEnded: true; radius: 10; height: 72"
material="side: double; shader: electric-shader; speed: 0.5; brightness: 2.0;
displacement: 2.0; scale: 8.0; resolution: 2.0; color: cyan;"
animation__scale="property: scale; from: 0.01 0.01 0.01; to: 1 1 1; easing: easeInExpo; dur: 5000; startEvents: beat"></a-entity>
<a-entity id="kaltunnel" class="beatlistener335" position="0 0 -2758" scale="0.01 0.01 0.01" rotation="90 0 0"
geometry="primitive: cylinder; openEnded: false; radius: 20; height: 70"
material="side: double; shader: kal-shader; zoom: 100.0;"
animation__scale="property: scale; from: 0.01 0.01 0.01; to: 1 1 1; easing: easeInExpo; dur: 5000; startEvents: beat"></a-entity>
<a-entity removetunnels class="beatlistener352"></a-entity>
<a-entity gotospace class="beatlistener350"></a-entity>
<a-entity id="electricwarp" position="0 0 -10000" geometry="primitive: sphere; radius: 250;" rotation="0 45 0"
material="side: double; shader: electric-shader; speed: 5.0; brightness: 2.0;
displacement: 2.0; scale: 8.0; resolution: 1.0; color: #FF00FF;"></a-entity>
<a-entity class="beatlistener350" geometry="primitive: sphere; radius: 20000; segmentsWidth: 80; segmentsHeight: 80;" rotation="0 90 10"
material="shader: gasplanet-shader; permutations: 1.0; iterations: 1.0; speed: 2.0;
brightness: 0.75; resolution: 10.0; color1: #00FF00; color2: #FF00FF; color3: #0000FF"
animation__position="property: position; from: 0 -100000 0; to: 0 -12000 16000; easing: easeInExpo; dur: 1000; startEvents: beat"></a-entity>
<a-entity rng-building-spacefleet="startbeat: 411;" class="beatlistener411" position="0 -10000 -2800"
animation__position="property: position; from: 0 0 -4000; to: 0 0 -2000; dur: 30000; easing: easeOutSine; startEvents: beat"></a-entity>
<a-entity rng-asteroids="start: 386" position="0 0 -2800"></a-entity>
<!-- Main menu -->
<a-entity id="menu" position="0 1.5 28.75">
<a-entity id="menu-layout" layout="type: circle; radius: 12" scale="0.05 0.05 0.05">
<a-entity template="src: #fractal-link"></a-entity>
<a-entity template="src: #about-link" data-thumb="#exbot"></a-entity>
<a-entity template="src: #ganzfeld-link"></a-entity>
<a-entity template="src: #start-link"></a-entity>
</a-entity>
<a-entity id="main" template="src: #main-link" scale="1 1 1" position="0 -10 2" rotation="-20 0 0"></a-entity>
<a-entity id="toggle" template="src: #toggle-link" scale="1 1 1" position="0 -9.8 2" rotation="-10 0 0"></a-entity>
<a-entity id="begin" template="src: #begin-link" scale="1 1 1" position="-0.1 -0.5 -1" rotation="0 0 0"></a-entity>
</a-entity>
<!-- Camera and children -->
<a-entity id="camera" camera="userHeight: 0.075; near: 0.25" position="0 0.1 30" look-controls
camera-manager="speed: 12; stop: -2800; id: main" rotation="0 0 0">
<a-entity id="analyser" audioanalyser="src: #side; enableBeatDetection: false;" ></a-entity>
<a-entity music-manager="startpos: -50; showbeats: true"></a-entity>
<a-entity id="cover" visible="false" class="beatlistener90" timedisabler geometry="primitive: cylinder; height: 150; radius: 75"
material="shader: flat; side: double; color: black; opacity: 1"></a-entity>
<a-cursor id="cursor" material="color: gray" position="0 0 0.5"
animation__click="property: scale; startEvents: click; from: 0.1 0.1 0.1; to: 1 1 1; dur: 150"
animation__fusing="property: scale; startEvents: fusing; from: 1 1 1; to: 0.1 0.1 0.1; dur: 1500"
animation__defusing="property: scale; startEvents: mouseleave; from: 0.1 0.1 0.1; to: 1 1 1; dur: 150"
event-set__1="_event: mouseenter; color: #f441a6"
event-set__2="_event: mouseleave; color: gray;"
fuse="true"
raycaster="objects: .link">
</a-cursor>
<a-entity id="click-instruction" text="value: Click to use VR cursor.\n\nHover to select. \nESC to unlock cursor.; color: orange; align: center"
scale="2 2 2" position="0 -0.05 -1.75" rotation="0 0 0" animation__opacity="property: text.opacity; from: 0; to: 1; dur: 10000"></a-entity>
</a-entity>
<!--
<a-entity id="TBC" text-geometry="value: To Be Continued...;" material="shader: disco-shader; resolution: 0.5; color: #001040; backgroundColor: #FF00FF; speed: 1" position="0 1000 10" scale="2 2 2"
class="beatlistener330" animation__move="property: position; from: -5 0 -5000; to: -5 0 -2910; easing: easeOutCubic; dur: 30000; startEvents: beat"></a-entity>
<a-entity rng-building-shader="static: 1 0; colorstyle: 1 0 0 0; color1: black; action: spaceship" position="0 0 -60" allrotate
audio-react="property: shader-color; analyserEl: #analyser; multiplier: 0.75; build: 1; startbeat: 2"></a-entity>
<a-box height="100" width="1000" position="0 0 -900" ></a-box>
Cool skybox that didn't fit in anywhere
<a-sky visible="true" mixin="gridpatternsky" radius="6500" rotation="0 10 0" position="0 -50 -2000"></a-sky>
Car with shader (need to find a way to feasibly get this on the road)
<a-entity mixin="car" position="1 1.2 28" rotation="0 180 0"
material="shader: caustic-shader; resolution: 2; color: yellow; backgroundColor: black; speed: 0.3; brightness: 1"></a-entity>
<a-entity id="camera" camera="userHeight: 1.6; near: 0.5" my-look-controls
camera-manager="speed: 0; rise: -900; stop: -1550; id: main" position="0 0 0" rotation="0 0 0">
<a-box material="color:red" audio-react="analyserEl: #analyser" position="0 2 8.5"></a-box>
<!-- beat: 594.059 half beat: 297.029 totalbeats: 464 camera-speed: 12 -->
</a-scene>
</body>
</html>