-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtetris.html
51 lines (43 loc) · 1.63 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Tetris Game</title>
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div id="tetris">
<div style="position: relative;">
<canvas id="gameCanvas" width="200" height="400"></canvas>
<canvas id="nextPieceCanvas" width="100" height="100"></canvas>
<div id="pauseOverlay">Paused</div>
<div id="gameOverOverlay">
<div>Game Over</div>
<div id="finalScore"></div>
<button id="restartButton" class="control-button">Restart</button>
</div>
<div id="levelSelectionOverlay">
<div>Select Starting Level (0-10):</div>
<input type="number" id="startLevelInput" min="0" max="10" value="0">
<button id="startGameButton" class="control-button">Start Game</button>
</div>
</div>
<div id="score">Score: 0 | Level: 0</div>
<div id="high-score">High Score: <span id="high-score-inner">0</span></div>
<div id="controls">
<button id="pauseButton" class="control-button">Pause</button>
</div>
<!-- Debug Information -->
<div id="debugInfo"></div>
</div>
<script src="scripts/MatrixService.js"></script>
<script src="scripts/SoundModule.js"></script>
<script src="scripts/HighScore.js"></script>
<script src="scripts/ActivePiece.js"></script>
<script src="scripts/GameState.js"></script>
<script src="scripts/GameDisplay.js"></script>
<script src="scripts/TetrisGame.js"></script>
<script src="scripts/Animate.js"></script>
<script src="scripts/main.js"></script>
</body>
</html>