This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.html
60 lines (60 loc) · 2.48 KB
/
game.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MINI-TETRIS</title>
<link rel="stylesheet" href="game.css">
</head>
<body>
<div id="game">
<div style="padding: none;">
<div id="how-to-play">
<div><strong>A:</strong> Move Left</div>
<div><strong>D:</strong> Move Right</div>
<div><strong>Q:</strong> Rotate Left</div>
<div><strong>E:</strong> Rotate Right</div>
<div><strong><Space>:</strong> Drop to Bottom</div>
</div>
<div id="error-box"></div>
<div id="debug-box"></div>
<div id="debug-tool" style="display: none;">
<button onclick="clearInterval(loopId)">Pause</button>
<button onclick="rndFrame()">Rand Frame</button>
<button onclick="rndDrop()">Drop</button>
<button onclick="continueRnd()">Continue</button>
</div>
<canvas id="cvs"></canvas>
<script src="./config.js"></script>
<script src="./lib/debug.js"></script>
<script src="./components/canvas.js"></script>
<script src="./lib/grid.js"></script>
<script src="./components/wiper.js"></script>
<script src="./lib/block_shape.js"></script>
<script src="./lib/tetris_lib.js"></script>
<script src="./components/tetris.js"></script>
<script src="./components/fixed.js"></script>
<script src="./components/effect.js"></script>
<div id="info" style="display: inline-block; margin-top: 10px;">
<div id="line-count" class="info-box">0</div>
<div id="diff-box" class="info-box"></div>
<div id="hold-box" class="info-box">
<canvas id="cvs-hld"></canvas>
<script src="./components/holder.js"></script>
</div>
<div id="history-box" class="info-box">0</div>
<script>
document.getElementById('history-box').innerHTML = document.cookie
</script>
<script src="./components/rank.js"></script>
</div><br>
<script>
document.getElementById('diff-box').innerHTML = difficulty
</script>
</div>
</div>
<div id="game-over-cover">
<h1 style="margin-top: 20%;">GAME OVER</h1>
</div>
<script src="./main.js"></script>
</body>
</html>