This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
forked from meth-meth-method/tetris
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
104 lines (99 loc) · 3.1 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
<!DOCTYPE html>
<html id="main">
<head>
<title id="titleTag">Tetris</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<!--launchIntoFullscreen(document.documentElement);-->
<body>
<div id="leftBar">
<h2>Modes:</h2>
<h4>Normal:</h4>
Normal tetris. Mostly.
<h4>Fill:</h4>
Normal Tetris exept full lines won't get deleted. The goal is to fill the game-area.
<h2>Dpad:</h2>
<p id="debug">.</p>
<div id="smallUrlInfo">
<p id="smallURLHead">Found a bug? Go there: </p>
<p id="smallURLText">https://github.com/RealDekkia/switch-tetris</p>
</div>
</div>
<div id="box">
<canvas id="tetris" width="240" height="400"/>
</div>
<div id="rightBar">
<h2>Input:</h2>
<table>
<tr>
<td>Left:</td>
<td>
<img src="img/aleft.png" height="32" width="32">
<img src="img/dleft.png" height="32" width="32">
</td>
</tr>
<tr>
<td>Right:</td>
<td>
<img src="img/alright.png" height="32" width="32">
<img src="img/dright.png" height="32" width="32">
</td>
</tr>
<tr>
<td>Down:</td>
<td>
<img src="img/adown.png" height="32" width="32">
<img src="img/ddown.png" height="32" width="32">
</td>
</tr>
<tr>
<td>Rotate:</td>
<td>
<img src="img/lshoulder.png" height="23" width="62">
<img src="img/rshoulder.png" height="23" width="62">
</td>
</tr>
<tr>
<td>Pause/Start:</td>
<td>
<img src="img/start.png" height="32" width="32">
<img src="img/select.png" height="32" width="32">
</td>
</tr>
<tr>
<td>Toggle Mode:</td>
<td>
<img src="img/y.png" height="32" width="32">
</td>
</tr>
</table>
<h2>Stats:</h2>
<table id="statTable">
<tr>
<td>Status:</td>
<td>
<p id="gameState">Playing</p>
</td>
</tr>
<tr>
<td>Mode:</td>
<td>
<p id="gameMode">Normal</p>
</td>
</tr>
<tr>
<td>Points:</td>
<td>
<div id="score">0</div>
</td>
</tr>
</table>
<script src="js/utils.js"></script>
<div id="toggleFullscreen" onclick="toggleFullScreen(document.documentElement);">Toggle Fullscreen</div>
</div>
<script src="js/tetris.js"></script>
<script src="js/gamepad.js"></script>
<script src="js/inputman.js"></script>
</body>
</html>