-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
112 lines (107 loc) · 3.18 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<title>Tetris</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="./css/tetris.css">
<link rel="stylesheet" href="./css/hs-instructions.css">
</head>
<body>
<div class='how-to-play'>
<h3>HOW TO PLAY</h3>
<div class="instructions">
<div class="row">
<p class='control'>
<i class="fa fa-arrow-circle-left"></i>
<i class="fa fa-arrow-circle-right"></i>
</p>
<p>Move Pieces Left or Right</p>
</div>
<div class="row">
<p class='control'><i class="fa fa-arrow-circle-up"></i></p>
<p>Rotate Piece</p>
</div>
<div class="row">
<p class='control'><i class="fa fa-arrow-circle-down"></i></p>
<p>Drop Piece Faster</p>
</div>
<div class="row">
<p class='control'>Space Bar</p>
<p>Immediate Drop to the Bottom</p>
</div>
<div class="row">
<p class='control'>ESC</p>
<p>Pause Game</p>
</div>
<div class="row">
<p class='control'>Z, X</p>
<p>Alternate Piece Rotation Controls</p>
</div>
</div>
<div class="close-button" id="close-how-to-play">Close Menu</div>
</div>
<div class='high-scores'>
<h3>HIGHSCORES</h3>
<table>
<thead>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody id='hs-list'>
</tbody>
</table>
<div class="close-button" id="close-high-score">Close Menu</div>
</div>
<div id="hs-canvas">
<div class='frame'>
<canvas id="main"></canvas>
</div>
</div>
<div id="hs-modal">
<div class="close-button small" id="close-hs-modal"></div>
<p id='hs-modal-points'><span id='points'></span> POINTS!</p>
<p>Congratulations on your High Score!</p>
<p>Enter Three Initials:</p>
<form id="new-hs">
<p><input type="text" id="name" maxlength="3"></input></p>
<p><input type="submit" value="SAVE"></input></p>
</form>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="./lib/EPSY.min.js"></script>
<script src="./lib/EPSY.CanvasHelper.js"></script>
<script src="./lib/howler.min.js"></script>
<script src="./lib/handlebars.js"></script>
<script src="./js/namespace.js"></script>
<script src="./js/loadimages.js"></script>
<script src="./js/utils.js"></script>
<script src="./js/piece.js"></script>
<script src="./js/pieces.js"></script>
<script src="./js/block.js"></script>
<script src="./js/board.js"></script>
<script src="./js/menu.js"></script>
<script src="./js/game.js"></script>
<script src="./js/game_images.js"></script>
<script src="./js/particle.js"></script>
<script src="./js/bitmapfont.js"></script>
<script src="./js/highscores.js"></script>
<script src="./js/instructions.js"></script>
<script src="./js/audio.js"></script>
<script id="hs-template" type="text/x-handlebars-template">
<tr>
<td>{{name}}</td>
<td>{{score}}</td>
</tr>
</script>
<script>
var canvasEl = document.getElementsByTagName("canvas")[0];
canvasEl.height = 320;
canvasEl.width = 304;
var tetris = new Tetris.Game(canvasEl);
</script>
</body>
</html>