-
Notifications
You must be signed in to change notification settings - Fork 27
/
index.html
42 lines (35 loc) · 1.27 KB
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Tetris by Andy</title>
<link rel="stylesheet" type="text/css" href="js_tetris.css">
</head>
<body onkeydown="storeKey(event)">
<div id="screen">
<div id="game_box">
<div id="game_screen">
<h2>JavaScript Tetris</h2>
<canvas id="canvas"
width="432"
height="528"
style="border:0px solid #000000;">
</canvas>
</div>
</div>
<div id="instructions">
<h2>Instructions</h2>
<ul>
<li><b>UP ARROW</b> = Rotate Tetrominoe</li></br>
<li><b>LEFT ARROW</b> = Tetrominoe Left</li></br>
<li><b>RIGHT ARROW</b> = Tetrominoe Right</li></br>
<li><b>DOWN ARROW</b> = Tetrominoe down one spot</li></br>
<li><b>SPACE BAR</b> = Send Tetrominoe to the bottom</li></br>
<li><b>P</b> = Pause/Resume game</li></br></br>
<li><b><span id="score">SCORE: 0</span></b></li>
</ul>
</div>
</div>
<script src="js_tetris.js"></script>
</body>
</html>