-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.html
41 lines (37 loc) · 1016 Bytes
/
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
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<title>c99 mod</title>
<link rel="stylesheet" href="count99-game.css">
</head>
<body>
<div id='game'>
<canvas id='game-canvas' width='' height=''></canvas>
<script>
var gc = document.getElementById("game-canvas");
swidth=window.innerWidth;
sheight = window.innerHeight;
gc.width = swidth;
gc.height = sheight;
</script>
<div id='hud'>
next: <span id='next-count'>1</span>
time: <span id='time'>99</span>
</div>
<div id='gameover-win'>
<p>Congratulations!</p>
<p>You Won!</p>
<p><a href='#' id='restart-button'>Restart Game</a></p>
</div>
</div>
<div id='gameover-fail'>
<p>Congratulations!</p>
<p>You Failed!</p>
<p><a href='#' id='restart-button'>Restart Game</a></p>
</div>
</div>
<script type="text/javascript" src='easeljs-0.5.0.min.js'></script>
<script type="text/javascript" src='count99-game.js'></script>
</body>
</html>