-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
30 lines (27 loc) · 1.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>VR Valentines</title>
<script src="https://aframe.io/releases/0.9.0/aframe.min.js"></script>
<script src="https://rawgit.com/feiss/aframe-environment-component/master/dist/aframe-environment-component.min.js"></script>
</head>
<body>
<a-scene>
<a-camera>
<a-text id="score-element" value="Score" position="-0.35 0.5 -0.8"></a-text>
<a-cursor></a-cursor>
</a-camera>
<a-entity environment="preset:japan"></a-entity>
<a-entity laser-controls></a-entity>
</a-scene>
<a-entity id="heart-model" gltf-model="Heart.gltf" position="0 1.5 -5"
scale="0.01 0.01 0.01"
animation="property: rotation; to: 0 360 0; loop: true; easing: linear; dur: 2000"
animation__collect="property: position; to: 0 0 0; dur: 300; startEvents: collected"
animation__minimize="property: scale; to: 0 0 0; dur: 300; startEvents: collected"></a-entity>
<script src="game.js"></script>
</body>
</html>