-
Notifications
You must be signed in to change notification settings - Fork 0
/
old-index.html
349 lines (346 loc) · 13.5 KB
/
old-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
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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<!DOCTYPE HTML>
<html>
<head>
<title>Dumbledore64</title>
<meta charset="utf-8" />
</head>
<body style="text-align:center; background-color:#000;">
<p style=""><img src="grafix/menu/pagetitle.png" alt="error"><p>
<link rel="icon" type="image/ico" href="grafix/iconwiz.ico" />
<script>
//LoadingBar
var loadbar1 = new Image();
loadbar1.src = "grafix/menu/loading/load.1.png";
var loadbar2 = new Image();
loadbar2.src = "grafix/menu/loading/load.2.png";
var loadbar3 = new Image();
loadbar3.src = "grafix/menu/loading/load.3.png";
var loadbar4 = new Image();
loadbar4.src = "grafix/menu/loading/load.4.png";
var loadbar5 = new Image();
loadbar5.src = "grafix/menu/loading/load.5.png";
var loadbar6 = new Image();
loadbar6.src = "grafix/menu/loading/load.6.png";
var loadbar7 = new Image();
loadbar7.src = "grafix/menu/loading/load.7.png";
var loadbar8 = new Image();
loadbar8.src = "grafix/menu/loading/load.8.png";
var loadbar9 = new Image();
loadbar9.src = "grafix/menu/loading/load.9.png";
var loadbar10 = new Image();
loadbar10.src = "grafix/menu/loading/load.10.png";
var LoadPics = {1: loadbar1, 2: loadbar2, 3: loadbar3, 4: loadbar4, 5: loadbar5, 6: loadbar6, 7: loadbar7, 8: loadbar8, 9: loadbar9, 10: loadbar10};
//Loading Progress, update with every asset
var numLoaded = 0;
var maxLoaded = 425;//+60+35+10loads, browser must cap at 400?
var gameReady = false;
function LoadingBar(){
numLoaded++;
if(numLoaded == maxLoaded){
gameReady = true;
}
}
</script>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/beeplow.ogg" type="audio/ogg" />
<source src="Sounds/beeplow.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/shortzaplow.ogg" type="audio/ogg"/>
<source src="Sounds/shortzaplow.mp3" type="audio/mpeg"/>
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/beepboop.ogg" type="audio/ogg" />
<source src="Sounds/beepboop.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/divebombsuperlow.ogg" type="audio/ogg" />
<source src="Sounds/divebombsuperlow.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/pulsebeam.ogg" type="audio/ogg" />
<source src="Sounds/pulsebeam.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/divebombmid.ogg" type="audio/ogg" />
<source src="Sounds/divebombmid.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/hardlaser.ogg" type="audio/ogg" />
<source src="Sounds/hardlaser.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/divebomblow.ogg" type="audio/ogg" />
<source src="Sounds/divebomblow.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/shortzap.ogg" type="audio/ogg" />
<source src="Sounds/shortzap.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/beepbooplow.ogg" type="audio/ogg" />
<source src="Sounds/beepbooplow.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/zaplaser.ogg" type="audio/ogg" />
<source src="Sounds/zaplaser.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/plucky.ogg" type="audio/ogg" />
<source src="Sounds/plucky.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/multilaser.ogg" type="audio/ogg" />
<source src="Sounds/multilaser.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/midboop.ogg" type="audio/ogg" />
<source src="Sounds/midboop.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/lowdouble.ogg" type="audio/ogg" />
<source src="Sounds/lowdouble.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/lowbomb.ogg" type="audio/ogg" />
<source src="Sounds/lowbomb.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/highdouble.ogg" type="audio/ogg" />
<source src="Sounds/highdouble.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/flatboop.ogg" type="audio/ogg" />
<source src="Sounds/flatboop.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/fastbeepslow.ogg" type="audio/ogg" />
<source src="Sounds/fastbeepslow.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/fastbeepshigh.ogg" type="audio/ogg" />
<source src="Sounds/fastbeepshigh.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/hum.ogg" type="audio/ogg" />
<source src="Sounds/hum.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/longfuzz.ogg" type="audio/ogg" />
<source src="Sounds/longfuzz.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/longlaser.ogg" type="audio/ogg" />
<source src="Sounds/longlaser.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/longpew.ogg" type="audio/ogg" />
<source src="Sounds/longpew.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/longpulse.ogg" type="audio/ogg" />
<source src="Sounds/longpulse.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/lowpulse.ogg" type="audio/ogg" />
<source src="Sounds/lowpulse.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/radiofailure.ogg" type="audio/ogg" />
<source src="Sounds/radiofailure.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/trailingbeeps.ogg" type="audio/ogg" />
<source src="Sounds/trailingbeeps.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/Fangs.ogg" type="audio/ogg" />
<source src="Sounds/Fangs.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/OverwhelmedByGoblins.ogg" type="audio/ogg" />
<source src="Sounds/OverwhelmedByGoblins.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/BadWizards.ogg" type="audio/ogg" />
<source src="Sounds/BadWizards.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/DumblebeatsNormal.ogg" type="audio/ogg" />
<source src="Sounds/DumblebeatsNormal.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/caseysquest.ogg" type="audio/ogg" />
<source src="Sounds/caseysquest.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/rain.ogg" type="audio/ogg" />
<source src="Sounds/rain.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/swamp.ogg" type="audio/ogg" />
<source src="Sounds/swamp.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/ACowboyLevel.ogg" type="audio/ogg" />
<source src="Sounds/ACowboyLevel.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/modLaser.ogg" type="audio/ogg" />
<source src="Sounds/modLaser.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/basslessDubstep.ogg" type="audio/ogg" />
<source src="Sounds/basslessDubstep.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/grit.ogg" type="audio/ogg" />
<source src="Sounds/grit.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/gritlong.ogg" type="audio/ogg" />
<source src="Sounds/gritlong.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/soothe.ogg" type="audio/ogg" />
<source src="Sounds/soothe.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/intro2.ogg" type="audio/ogg" />
<source src="Sounds/intro2.mp3" type="audio/mpeg" />
</audio>
<audio <!--oncanplay="LoadingBar()"-->>
<source src="Sounds/sunlight.ogg" type="audio/ogg" />
<source src="Sounds/sunlight.mp3" type="audio/mpeg" />
</audio>
<?php
$scoredoc = fopen("HighScores.txt", "r") or die("Error: HighScores.txt could not be opened");
$score1 = intval(fgets($scoredoc));
$score2 = intval(fgets($scoredoc));
$score3 = intval(fgets($scoredoc));
$score4 = intval(fgets($scoredoc));
$score5 = intval(fgets($scoredoc));
$score6 = intval(fgets($scoredoc));
$score7 = intval(fgets($scoredoc));
$score8 = intval(fgets($scoredoc));
$score9 = intval(fgets($scoredoc));
$score10 = intval(fgets($scoredoc));
fclose($scoredoc);
$namedoc = fopen("Names.txt", "r") or die("Error: Names.txt could not be opened");
(string) $name1 = fgets($namedoc);
$name1 = str_replace("\n",'',$name1);
(string) $name2 = fgets($namedoc);
$name2 = str_replace("\n",'',$name2);
(string) $name3 = fgets($namedoc);
$name3 = str_replace("\n",'',$name3);
(string) $name4 = fgets($namedoc);
$name4 = str_replace("\n",'',$name4);
(string) $name5 = fgets($namedoc);
$name5 = str_replace("\n",'',$name5);
(string) $name6 = fgets($namedoc);
$name6 = str_replace("\n",'',$name6);
(string) $name7 = fgets($namedoc);
$name7 = str_replace("\n",'',$name7);
(string) $name8 = fgets($namedoc);
$name8 = str_replace("\n",'',$name8);
(string) $name9 = fgets($namedoc);
$name9 = str_replace("\n",'',$name9);
(string) $name10 = fgets($namedoc);
$name10 = str_replace("\n",'',$name10);
fclose($namedoc);
$achievementdoc = fopen("achievements.txt", "r") or die("Error: achievements.txt could not be opened");
$achievement1 = intval(fgets($achievementdoc));
$achievement2 = intval(fgets($achievementdoc));
$achievement3 = intval(fgets($achievementdoc));
$achievement4 = intval(fgets($achievementdoc));
$achievement5 = intval(fgets($achievementdoc));
$achievement6 = intval(fgets($achievementdoc));
$achievement7 = intval(fgets($achievementdoc));
$achievement8 = intval(fgets($achievementdoc));
$achievement9 = intval(fgets($achievementdoc));
$achievement10 = intval(fgets($achievementdoc));
fclose($achievementdoc);
$pathdoc = fopen("paths.txt", "r") or die("Error: paths.txt could not be opened");
$path1 = intval(fgets($pathdoc));
$path2 = intval(fgets($pathdoc));
$path3 = intval(fgets($pathdoc));
$path4 = intval(fgets($pathdoc));
$path5 = intval(fgets($pathdoc));
$path6 = intval(fgets($pathdoc));
$path7 = intval(fgets($pathdoc));
$path8 = intval(fgets($pathdoc));
$path9 = intval(fgets($pathdoc));
$path10 = intval(fgets($pathdoc));
fclose($pathdoc);
?>
<script>
var gscore1 = "<?php echo($score1);?>";
var gscore2 = "<?php echo($score2);?>";
var gscore3 = "<?php echo($score3);?>";
var gscore4 = "<?php echo($score4);?>";
var gscore5 = "<?php echo($score5);?>";
var gscore6 = "<?php echo($score6);?>";
var gscore7 = "<?php echo($score7);?>";
var gscore8 = "<?php echo($score8);?>";
var gscore9 = "<?php echo($score9);?>";
var gscore10 = "<?php echo($score10);?>";
var gname1 = "<?php echo($name1);?>";
var gname2 = "<?php echo($name2);?>";
var gname3 = "<?php echo($name3);?>";
var gname4 = "<?php echo($name4);?>";
var gname5 = "<?php echo($name5);?>";
var gname6 = "<?php echo($name6);?>";
var gname7 = "<?php echo($name7);?>";
var gname8 = "<?php echo($name8);?>";
var gname9 = "<?php echo($name9);?>";
var gname10 = "<?php echo($name10);?>";
var gachievement1 = 0;//"<?php echo($achievement1);?>";
var gachievement2 = 0;//"<?php echo($achievement2);?>";
var gachievement3 = 0;//"<?php echo($achievement3);?>";
var gachievement4 = 0;//"<?php echo($achievement4);?>";
var gachievement5 = 0;//"<?php echo($achievement5);?>";
var gachievement6 = 0;//"<?php echo($achievement6);?>";
var gachievement7 = 0;//"<?php echo($achievement7);?>";
var gachievement8 = 0;//"<?php echo($achievement8);?>";
var gachievement9 = 0;//"<?php echo($achievement9);?>";
var gachievement10 = 0;//"<?php echo($achievement10);?>";
var gpath1 = 0;//"<?php echo($path1);?>";
var gpath2 = 0;//"<?php echo($path2);?>";
var gpath3 = 0;//"<?php echo($path3);?>";
var gpath4 = 0;//"<?php echo($path4);?>";
var gpath5 = 0;//"<?php echo($path5);?>";
var gpath6 = 0;//"<?php echo($path6);?>";
var gpath7 = 0;//"<?php echo($path7);?>";
var gpath8 = 0;//"<?php echo($path8);?>";
var gpath9 = 0;//"<?php echo($path9);?>";
var gpath10 = 0;//"<?php echo($path10);?>";
</script>
<script src="Classes/Stacktrace.js"></script>
<script src="libraries/ErrorLog.js"></script>
<script src="libraries/jquery.js"></script>
<script src="libraries/jqueryjson.js"></script>
<script src="libraries/jstorage.js"></script>
<script src="Classes/Global.js"></script>
<script src="Classes/Menus.js"></script>
<script src="Classes/ui.js"></script>
<script src="Classes/Environment.js"></script>
<script src="Classes/EnemyAttacks.js"></script>
<script src="Classes/Tier3EnemyAttacks.js"></script>
<script src="Classes/Tier3Enemies.js"></script>
<script src="Classes/Enemies.js"></script>
<script src="Classes/Fire.js"></script>
<script src="Classes/Ice.js"></script>
<script src="Classes/Earth.js"></script>
<script src="Classes/Lightning.js"></script>
<script src="Classes/Air.js"></script>
<script src="Classes/Weapons.js"></script>
<script src="Classes/Water.js"></script>
<script src="Classes/Dark.js"></script>
<script type="text/javascript" src="Dumbledore64.js"></script>
<script src="Classes/Pickups.js"></script>
<script src="Classes/Mystic.js"></script>
<script src="Classes/Light.js"></script>
<script src="Classes/DrawSpells.js"></script>
<script src="Classes/Reset.js"></script>
</body>
</html>