-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgame.html
69 lines (66 loc) · 2.36 KB
/
game.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
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'/>
<link href="favicon.ico" mce_href="favicon.ico" type="image/x-icon" rel="bookmark"/>
<link href="favicon.ico" mce_href="favicon.ico" type="image/x-icon" rel='icon'/>
<link href="favicon.ico" mce_href="favicon.ico" type="image/x-icon" rel="shortcut icon"/>
<title>Loading Puzzle Pack...</title>
<link href='game.css' rel='stylesheet' type='text/css'/>
<script type='text/javascript' src='game.js'></script>
<!--
<script type='text/javascript' src='js/image.js'></script>
<script type='text/javascript' src='js/misc.js'></script>
<script type='text/javascript' src='js/stage.js'></script>
<script type='text/javascript' src='js/player.js'></script>
<script type='text/javascript' src='js/demon.js'></script>
<script type='text/javascript' src='js/object.js'></script>
<script type='text/javascript' src='js/maze.js'></script>
<script type='text/javascript' src='js/level.js'></script>
<script type='text/javascript' src='js/game.js'></script>
-->
</head>
<body>
<canvas id='stage' width='612px' height='432px'>
<h1>Oops! Your browser does not support HTML5.</h1>
<p>This game requires HTML5. IE8 and earlier IE versions does not support HTML5.</p>
<p>For Windows XP users, you must install a browser which supports HTML5, e.g. Firefox, Chrome.</p>
</canvas>
<div id='gamefinished'>
<h1>Congratulations!!!</h1>
<h2>You have finished all the levels!!!</h2>
<h2>Your total score is:</h2>
<h1 id='totalscore'></h1>
<p>
<a class='back' href='index.html'><input type='button' value='Exit'/></a>
</p>
</div>
<iframe id='egg'>
</iframe>
<div id='footer'>
<div class='item'>
Level: <span id='level'></span>
</div>
<div class='item'>
Score: <span id='score'></span>
</div>
<div class='item'>
<input type='checkbox' id='enableSound' checked='checked'/><label for='enableSound'>Sound</label>
</div>
<div class='item' id='paused'>Paused</div>
<a class='back' href='index.html'>
<input type='button' value='Exit'/>
</a>
</div>
<script>
let packMatch=/puzzlePack=([A-Za-z0-9]+)/.exec(location.search);
if(!packMatch){
console.error('Failed to load puzzle pack');
}
let pack=packMatch[1];
let scriptTag=document.createElement('script');
scriptTag.setAttribute('src',`${pack}.js`);
document.body.appendChild(scriptTag);
</script>
</body>
</html>