-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (52 loc) · 2.95 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
<!DOCTYPE html>
<html>
<head>
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
<script src="js/pinch-handler.js"></script>
<script src="js/main.js"></script>
<link rel="stylesheet" href="css/styles.css">
<script src="https://unpkg.com/aframe-event-set-component@5.0.0/dist/aframe-event-set-component.min.js"></script>
</head>
<body>
<a-scene pinch-handler>
<a-assets>
<img id="skyTexture1" src="img/sudoRoom_hardware_hack_1.jpg"/>
<img id="skyTexture2" src="https://cdn.glitch.global/4f84b3a7-2196-4e68-9b5d-8d8f7c229bc8/KaraWalkerSFMoma360.jpg?v=17222a19263454"/>
<img id="skyTexture3" src="https://cdn.glitch.global/c70b1072-7801-4a12-b3cf-3bb5e174019e/SudoROom.JPG?v=1722469205013"/>
</a-assets>
<a-sky id="skybox" src="#skyTexture1" rotation="0 0 0"></a-sky>
<a-text font="kelsonsans" value="SudoRoom & Fix-It Clinic"
width="6" position="-2.5 1 -1.5" rotation="0 15 0"></a-text>
<a-entity id="size" position="-2.0 0.5 -1.5" rotation="0 15 0"
animation="property: scale; to: 2 2 2; dir: alternate; loop: true"
text="color: white; align: center; value: Hardware Hack Night; width: 1.5">
</a-entity>
<a-entity id="portal1" class="portal" geometry="primitive: circle; radius: 0.5"
material="color: blue; opacity: 0.5" position="0 1.5 -3"
event-set__enter="_event: mouseenter; material.opacity: 0.8"
event-set__leave="_event: mouseleave; material.opacity: 0.5">
<a-text value="Stare here to transport" align="center" position="0 0.6 0" scale="0.5 0.5 0.5"></a-text>
</a-entity>
<a-entity id="portal2" class="portal" geometry="primitive: circle; radius: 0.5"
material="color: green; opacity: 0.5" position="2 1.5 -3" visible="false"
event-set__enter="_event: mouseenter; material.opacity: 0.8"
event-set__leave="_event: mouseleave; material.opacity: 0.5">
<a-text value="Stare here to transport" align="center" position="0 0.6 0" scale="0.5 0.5 0.5"></a-text>
</a-entity>
<a-entity id="portal3" class="portal" geometry="primitive: circle; radius: 0.5"
material="color: red; opacity: 0.5" position="-2 1.5 -3" visible="false"
event-set__enter="_event: mouseenter; material.opacity: 0.8"
event-set__leave="_event: mouseleave; material.opacity: 0.5">
<a-text value="Stare here to transport" align="center" position="0 0.6 0" scale="0.5 0.5 0.5"></a-text>
</a-entity>
<a-entity position="0 1.8 2">
<a-entity camera look-controls wasd-controls>
<a-cursor></a-cursor>
</a-entity>
</a-entity>
</a-scene>
<script>
// JavaScript code will be added here
</script>
</body>
</html>