-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
39 lines (35 loc) · 2.29 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
<!DOCTYPE html>
<html>
<head>
<!-- add aframe, then this component: -->
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kylebakerio/[email protected]/a-console.js"></script>
<!-- some other stuff to make the demo pretty, but not necessary: -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/super-sky.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script>
<!-- <script src="a-console.js"></script> -->
</head>
<body>
<a-scene>
<a-entity environment="skyType:none; lighting:none; "></a-entity>
<a-light type="point" position="0 2.129 2.501"></a-light>
<a-super-sky
cycleduration="1"
groundcolor="#7BC8A4"
></a-super-sky>
<a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9"></a-box>
<a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E"></a-sphere>
<a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
<a-entity id="tv" position="-1.45 1.65 -1.8" rotation="0 225 0" scale=".4 .4 .4" gltf-model="https://cdn.glitch.global/a15b6fb5-a57c-41b9-aabf-19db2295bca3/tv.glb?v=1661260066264">
<a-console thumbstick-scrolling="#left-hand" skip-intro="false" demo="false" keyboard-events="true" inject-keyboard="false" id="tvconsole" height="2.24" font-size="34" width="3.91" pixel-width="2160" position="0.198 -0.197 -0.518" rotation="0 180 0"></a-console>
</a-entity>
<a-entity id="left-hand" hand-controls="hand:left"></a-entity>
<a-entity id="right-hand" laser-controls="hand:right">
<!-- we can attach a mini terminal to our controller to walk around with, too -->
<a-entity gltf-model="https://cdn.glitch.global/a15b6fb5-a57c-41b9-aabf-19db2295bca3/PHONE.glb?v=1661260070295" position="0.055 0 0.083" rotation="-12 18 90" scale=".03 .03 .03">
<a-console thumbstick-scrolling="#right-hand" id="hand-console" height=".25" width=".5" pixel-width="720" font-size="20" background-color="black" text-color="limegreen" scale="10 10 10" rotation="0 0 -90" position="3.637 2.910 -1.75"></a-console>
</a-entity>
</a-entity>
</a-scene>
</body>
</html>