-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
23 lines (23 loc) · 1.14 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Duck Hunt</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://aframe.io/releases/0.8.2/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 inspector="url: https://aframe.io/releases/0.3.0/aframe-inspector.min.js">
<a-entity environment="preset: forest; color: red; showLine: true;"></a-entity>
<a-entity camera look-controls position="1 1 0">
<a-entity cursor="fuse: false;" position="0 0 -1" geometry="primitive: ring; radiusInner: 0.015; radiusOuter: 0.02"
material="color: red; shader: flat">
<a-animation begin="click" easing="ease-in" attribute="scale" dur="100" fill="forwards" from="0.1 0.1 0.1" to="1 1 1"></a-animation>
<a-animation begin="cursor-fusing" easing="ease-in" attribute="scale" dur="1500" fill="backwards" from="1 1 1" to="0.1 0.1 0.1"></a-animation>
</a-entity>
</a-entity>
</a-scene>
</body>
</html>