forked from geekymeeky/JS-games
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtetris.html
32 lines (32 loc) · 1 KB
/
tetris.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Tetris Game</title>
<link rel="stylesheet" href="static/css/tetris.css" />
<link rel="icon" href="static/images/favicon.png">
</head>
<body>
<div class="back">
<a href="index.html"><button>Back to Home</button></a>
</div>
<h1>Tetris Game</h1>
<div class="instruction-heading">
<h2>Instructions:</h2>
</div>
<div class="instructions">
<ul>
<h4>To change tetrominoes, press up key.</h4>
<h4>To move to left, press left key.</h4>
<h4>To move to right, press right key.</h4>
<h4>To move to down, press down key.</h4>
<h4>You can check how many lines you have completed in the top.</h4>
<h4>If you run out of moves, the game will be ended.</h4>
</ul>
</div>
<span id="lines">Lines: 0</span>
<canvas id="board"> </canvas>
<script src="static/js/tetrominoes.js"></script>
<script src="static/js/tetris.js"></script>
</body>
</html>