forked from hwz/catris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
catris.html
43 lines (41 loc) · 1.25 KB
/
catris.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
<!DOCTYPE html>
<html>
<head>
<title> Catris -- tetris with cats</title>
<style type="text/css">
.game { border: 1px solid black; position: absolute; }
</style>
<link rel="stylesheet" type="text/css" href="default.css">
</head>
<body>
<div id='gameBox'>
<div id='game'>
<canvas id="bg" class="gameCanvas" style="z-index: 1"></canvas>
<canvas id="fg" class="gameCanvas" style="z-index: 10"></canvas>
</div>
<div id="blocker">
<img src="images/paused.png"/>
</div>
<div id="gameover">
<img src="images/gameover.png"/>
</div>
</div>
<div id='controlBox'>
<div id='nextBlock'>
<canvas id='next' class="gameCanvas" width="120" height="120"></canvas>
</div>
<div id='controls'>
<button id='start'>start</button>
<button id='pause'>pause</button>
<button id='restart'>restart</button>
<br/>
level: <span id='numLevel'>1</span>
<br/>
score: <span id='numScore'>0</span>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.touchSwipe.min.js"></script>
<script src='catris.js'></script>
</body>
</html>