-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5.html
More file actions
235 lines (180 loc) · 6.85 KB
/
5.html
File metadata and controls
235 lines (180 loc) · 6.85 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<html>
<head>
<title>FALL!NG - HTML5 video game by RedMagicBlue Games</title>
<meta charset="utf-8" />
<meta name="description" content="FALL!NG - Escape your subconscious mind by falling deeper and deeper into the unknown of your soul. Unlock secret potential of your Yin and yang. A 3D first-person platformer built with love in A-Frame. A HTML5 video game by Sara Ferro & Chris Weil for Smartphone, Tablet, Laptop and PC, running on Windows, Mac, Linux, Android and iOS." />
<meta name="robots" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="author" content="RedMagicBlue">
<meta property="og:image" content="./images/icon.png" />
<meta http-equiv="refresh" content="60; URL='gameover.html'" />
<link rel="icon" type="image/png" href="./images/logo.png" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="assets/engine.js"></script>
<script src="assets/physics.js"></script>
<script src="assets/extras.js"></script>
<script src="assets/event.js"></script>
<script src="assets/gui.js"></script>
<script src="assets/audio.js"></script>
<script src="assets/sound.js"></script>
<script src="assets/particles.js"></script>
<script src="assets/shader.js"></script>
</head>
<style>
.a-dialog-allow-button {
background-color: lime;
}
.a-dialog-deny-button {
background-color: white;
}
.a-dialog-ok-button {
background-color: white;
}
.rotate {
animation: rotation 8s infinite linear;
}
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
.icon-bar {
position: fixed;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.icon-bar a {
display: block;
text-align: center;
padding: 16px;
transition: all 0.1s ease;
color: lime;
font-size: 20px;
}
.icon-bar a:hover {
background-color: white;
color: black;
}
.menu {
background: black;
color: white;
}
.content {
margin-left: 75px;
font-size: 30px;
}
body {
font-family: 'Lato', sans-serif;
}
.overlay {
height: 100%;
width: 0%;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: rgba(0,0,0, 1.0);
overflow-x: hidden;
transition: 0s;
}
.overlay-content {
position: relative;
top: 10%;
width: 100%;
text-align: center;
margin-top: 30px;
}
.overlay a {
padding: 8px;
text-decoration: none;
font-size: 36px;
color: white;
display: block;
transition: 0.3s;
}
.overlay a:hover, .overlay a:focus {
color: lime;
}
.overlay .closebtn {
position: absolute;
top: 20px;
right: 45px;
font-size: 60px;
}
@media screen and (max-height: 450px) {
.overlay a {font-size: 20px}
.overlay .closebtn {
font-size: 40px;
top: 15px;
right: 35px;
}
}
</style>
</head>
<body bg-color="black">
<a-scene physics="debug: false;" particle-system="preset: snow; particleCount: 15000; color:green, lime; rotationAxis:y; positionSpread:0 1000 0;" loading-screen="dotsColor: #fffff; backgroundColor: black" vr-mode-ui="enabled: false" device-orientation-permission-ui="enabled: true" antialias="true" cursor="rayOrigin: mouse">
<!-- Camera -->
<a-entity id="rig" position="0 400 0" look-controls="pointerLockEnabled:true;">
<a-entity id="camera" camera position="0 1.6 0" cursor-visible="true">
<a-gui-cursor id="cursor"
raycaster="objects: [gui-interactable]"
fuse="true" fuse-timeout="1000"
color="lime"
hover-color="lime"
active-color="lime"
design="ring" > <!-- dot, ring, reticle, cross -->
</a-gui-cursor> <!-- /cursor -->
</a-entity>
</a-entity>
<!-- World -->
<a-sky color="black"></a-sky>
<audio id="music" src="assets/music.mp3" crossorigin="anonymous"></audio>
<audio id="sound" src="assets/sound.mp3" crossorigin="anonymous"></audio>
<a-box material="opacity: 0.0; transparent: true;" scale="200 200 200" position="0 399 0" audio="src: #music;"></a-box>
<a-sphere scale="3 3 3" shader-frog="name:Cosmic_Shader" id="yinyang1" rotation="90 0 0" gui-interactable position="150 250 0" sound="src: #sound; on: click;"
animation="property: position; to: 150 600 0; loop: true; easing: linear; dur: 10000"
animation__mouseenter="property: scale; to: 0 0 0; startEvents: click; dur: 500"; event-set__click="_target: #yinyang2; visible: true;">
</a-sphere>
<a-sphere scale="3 3 3" shader-frog="name:Cosmic_Shader" id="yinyang2" visible="false" rotation="0 0 0" gui-interactable position="-120 100 0" sound="src: #sound; on: click;"
animation="property: position; to: 90 600 0; loop: true; easing: linear; dur: 10000"
animation__mouseenter="property: scale; to: 0 0 0; startEvents: click; dur: 500"; event-set__click="_target: #yinyang3; visible: true;">
</a-sphere>
<a-sphere scale="3 3 3" shader-frog="name:Cosmic_Shader" id="yinyang3" visible="false" rotation="0 90 0" gui-interactable position="-80 0 0" sound="src: #sound; on: click;"
animation="property: position; to: -80 600 0; loop: true; easing: linear; dur: 10000"
animation__mouseenter="property: scale; to: 0 0 0; startEvents: click; dur: 500"; event-set__click="_target: #yinyang4; visible: true;">
</a-sphere>
<a-sphere scale="3 3 3" shader-frog="name:Cosmic_Shader" id="yinyang4" visible="false" rotation="0 0 0" gui-interactable position="50 -100 0" sound="src: #sound; on: click;"
animation="property: position; to: 200 600 0; loop: true; easing: linear; dur: 10000"
animation__mouseenter="property: scale; to: 0 0 0; startEvents: click; dur: 500"; event-set__click="_target: #exit1; visible: true;">
</a-sphere>
<a-sphere scale="3 3 3" shader-frog="name:Cosmic_Shader" id="exit1" visible="false" rotation="0 0 0" gui-interactable onclick="location.href='level6.html'" position="40 -350 0" sound="src: #sound; on: click;"
animation="property: position; to: -100 600 0; loop: true; easing: linear; dur: 10000">
</a-sphere>
</a-scene>
<!-- Menu -->
<div class="icon-bar">
<a onclick="openNav()" class="menu" style="cursor:pointer"><i class="fa fa-bars"></i></a>
</div>
<div id="myNav" class="overlay">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<div class="overlay-content">
<h1 style="color:lime;">LEVEL 5</h1>
<img src="images/icon.png" width="300px" class="rotate" /> <br>
<a href="5.html">restart</a>
</div>
</div>
<script>
function openNav() {
document.getElementById("myNav").style.width = "100%";
}
function closeNav() {
document.getElementById("myNav").style.width = "0%";
}
</script>
</body>
</html>