-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
75 lines (67 loc) · 4.08 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.9.4/firebase-database.js"></script>
<script src="firebase-stuff.js"></script>
<script src="test.js"></script>
<script src="game.js"></script>
<script src="https://cdn.rawgit.com/donmccurdy/aframe-physics-system/v2.1.0/dist/aframe-physics-system.min.js"></script>
<script src="https://unpkg.com/super-hands/dist/super-hands.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-physics-extras.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-event-set-component@^4.0.0/dist/aframe-event-set-component.min.js"></script>
</head>
<body>
<a-scene physics="gravity: -.5">
<a-assets>
<a-mixin id="controller"
super-hands="colliderEvent: collisions;
colliderEventProperty: els;
colliderEndEvent: collisions;
colliderEndEventProperty: clearedEls;
grabStartButtons: gripdown, pointdown, triggerdown;
grabEndButtons: gripup, pointup, triggerup"
static-body="shape: sphere; sphereRadius: 0.11"
physics-collider
collision-filter = "collidesWith: default, red, green, blue, yeet;
collisionForces: false">
</a-mixin>
<a-mixin id="cube" geometry="width: 1; height: 1; depth: 1" dynamic-body hoverable grabbable></a-mixin>
</a-assets>
<!-- Camera and Motion Controllers -->
<a-entity id="camera-rig">
<a-entity id="camera" camera position="0 1.6 0" look-controls wasd-controls rotation="0 -90 0" position-display>
<!-- Text -->
<a-entity id="title-text" position="0 1.25 -3" text="align: center; value: Minesweeper; width: 6; side: double;" clock></a-entity>
<a-entity id="sub-text" position="0 1.25 -4" text="align: center; value: ; width: 5; side: double;" clock></a-entity>
<a-entity visible="false" id="position-text" position="0 -3 -3" text="align: center; value: Rotation; width: 10; side: double;"></a-entity>
<a-entity visible="false" id="thumbstick-text" position="0 -3.5 -3" text="align: center; value: Thumbstick; width: 10; side: double;"></a-entity>
</a-entity>
<a-entity windows-motion-controls="hand: left" move ></a-entity>
<a-entity windows-motion-controls="hand: right" move id="rightHand" hand-controls="right" mixin="controller"></a-entity>
</a-entity>
<!-- Plane and Sky -->
<a-plane position="0 0 -0" rotation="-90 0 0" width="16" height="16" color="#34386d" static-body collision-filter="group: default; collidesWith: yeet"></a-plane>
<a-sky color="#0b0e30"></a-sky>
<!-- Axis Lines -->
<a-entity visible="false" line__x="start: 0, 0, 0; end: 8 0 0; color: red" line__y="start: 0, 0, 0; end: 0 8 0; color: blue" line__z="start: 0, 0, 0; end: 0 0 8; color: green"></a-entity>
<!-- Grid lines -->
<a-entity generate-lines></a-entity>
<!--spawn boxes -->
<a-entity generate-boxes></a-entity>
<!-- Current Square -->
<a-plane id="current-square" position="-7.5 0.01 7.5" rotation="-90 0 0" width="1" height="1" color="cyan" spawn></a-plane>
<!-- Animation Test -->
<a-entity generate-enemies id="enemies"></a-entity>
<!-- Flag -->
<a-entity id ="flag" visible="false">
<a-box position="-10 .1 0" color="#5b5b5b" rotation="0 0 0" width="1" height=".1" depth="1"></a-box>
<a-box position="0 .1 0" color="#606060" rotation="0 0 0" width=".6" height=".1" depth=".6"></a-box>
<a-box position="0 .75 0" color="#606060" rotation="0 45 0" width=".1" height="1.5" depth=".1"></a-box>
<a-triangle position="0 .75 0" color="#ff0000" vertex-c=".6 -.25 .6" vertex-a="0 0 0" vertex-b="0 -.5 0"></a-triangle>
</a-entity>
</a-scene>
</body>
</html>