-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
78 lines (77 loc) · 2.46 KB
/
test.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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<link rel="stylesheet" href="./css/tetris.css" />
<link rel="stylesheet" href="./css/tetris.css" />
<div class="grid">
<div class="left-column">
<h2 style="margin-bottom: 10px">HIGH SCORES</h2>
<ol id="highScores"></ol>
<br /><br />
<span>Coin: </span>
<span id="tetris-coin" class="tetris-coin">${coin}</span>
</div>
<div class="game-board-container">
<canvas id="board" class="game-board"></canvas>
</div>
<div class="right-column">
<div>
<h1>TETRIS</h1>
<p>Score: <span id="score">0</span></p>
<p>Lines: <span id="lines">0</span></p>
<p>Level: <span id="level">0</span></p>
<canvas id="next" class="next"></canvas>
</div>
<div id="sound-div">
<span class="sound-item" id="sound-speaker"></span>
<span class="sound-item" id="sound-description"></span>
</div>
<button id="play-btn" onclick="play()" class="play-button">Play</button>
<button id="pause-btn" onclick="pause()" class="play-button">
Pause
</button>
</div>
<div id="count-down">1</div>
</div>
<div id="game-controls" class="game-controls hide">
<button id="resumeButton" class="control-button" onclick="resumeGame()">
game resume
</button>
<button id="restartButton" class="control-button" onclick="restartGame()">
game restart
</button>
<button
id="returnButton"
class="control-button"
onclick="returnToSelection()"
>
game select
</button>
</div>
<div id="nickname-screen" class="screen">
<form id="nickname-form">
<label for="nickname">Enter your nickname:</label>
<input
type="text"
id="nickname"
name="nickname"
placeholder="your name"
/>
<button type="submit">Submit</button>
</form>
</div>
<div class="leaderboard-container">
<h1>Ranking</h1>
<ol id="leaderboard-list"></ol>
<div class="button-row">
<button id="game-again-button" class="gameButton">Game Again</button>
<button id="game-select-button" class="gameButton">Game Select</button>
</div>
</div>
</body>
</html>