-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtryagain.html
69 lines (60 loc) · 2.77 KB
/
tryagain.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
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<link href="https://fonts.googleapis.com/css?family=Denk+One" rel="stylesheet">
<script src="js/tryagain.js"></script>
</head>
<body>
<a-assets>
<a-asset-item id="dragon-obj" src="models/dragon/dragon.obj"></a-asset-item>
<a-asset-item id="dragon-mtl" src="models/dragon/dragon.mtl"></a-asset-item>
<img id="ground" src="models/final_floor.jpeg">
<img id="blackhole-texture" src="models/blackhole.jpeg">
</a-assets>
<a-scene inspector="url: https://aframe.io/releases/0.3.0/aframe-inspector.min.js">
<a-camera position="0 0 3">
</a-camera>
<a-sky id='sky' src="models/sky8.jpg"></a-sky>
<a-obj-model id="dragon" src="#dragon-obj" mtl="#dragon-mtl" position="-6 -.7 -8.5" rotation='0 45 0'></a-obj-model>
<a-plane src="#ground" height="20" width="20" rotation="-90 0 0"></a-plane>
<!-- ========= Screen Blackout ========= -->
<div id='overlay' style='background: white; display: none; width: 100%; height: 100%; position:absolute; top:0; left:0; z-index:99998;'></div>
<a-sphere id="blackhole" src="#blackhole-texture" radius="2" position="7.5 5.5 -12" rotation="-17 -115 -30" visible="false">
<a-animation attribute="scale" dur="10000" from="0.1 0.1 0.1" to="3 3 3" easing="linear" begin="expand"></a-animation>
<a-animation attribute="rotation"
dur="500"
fill="forwards"
from="-17 -115 -30"
to="343 -115 -30"
easing="linear"
repeat="indefinite">
</a-animation>
<a-animation
attribute="position"
dur="2000"
from="7.5 5.5 -12"
to=".1 3 -1"
easing="linear"
begin="next_page">
</a-animation>
</a-sphere>
<a-entity id='text' geometry="primitive: plane; width: auto; height: 2;" visible='false' text="value: The world has been destroyed! Enter the black hole to go back in time.; align: center; width: 4; wrap-count: 20; color: #333333" position="0 4 -5.73" rotation='0 15 0' material="color: white" >
<a-animation
attribute="scale"
dur="500"
from="0.1 0.1 0.1"
to="1 1 1"
easing="linear"
begin="text_expand">
</a-animation>
</a-entity>
<a-camera position='0 0 1' rotation="0 0 0">
<a-cursor color='white'></a-cursor>
</a-camera>
</a-scene>
</body>
</html>