-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
41 lines (34 loc) · 1.13 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
<!DOCTYPE>
<html>
<head>
<title>Tetris</title>
<link href='http://fonts.googleapis.com/css?family=Indie+Flower' rel='stylesheet' type='text/css'>
<link href="./css/styles.css" rel='stylesheet'>
<script src="tetris.js"></script>
</head>
<body>
<div id="interface">
<canvas id="board" width="300" height="600"></canvas>
<canvas id="headsUp" width="100" height="100"></canvas>
<canvas id="frozen" width="100" height="100"></canvas>
<button id="start" onclick="TetrisGame.start()"></button>
<label for="width">Type width of the board : <br />and press start to play </label>
<input type="text" id="width" value="300" />
<p id="sterowanie"> ← left <br />
→ right <br />
↓ accelerate <br />
spacebar drop <br />
z/y rotate counterclockwise <br />
x/↑ rotate clockwise </br>
c freeze </br>
♥♥♥ </br>
You can also play <br /> on touch devices, <br />move your finger: <br />
← left <br />
→ right <br />
↓ accelerate/slow down <br />
↑ rotate clockwise
</p>
<p class="points">Punkty <span id="points">0</span></p>
</div>
</body>
</html>