-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (96 loc) · 3.78 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
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<title>Tetris</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.css">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<header>
<p>TETRIS</p>
</header>
<main>
<!-- Left part of body -->
<div class='left-box'>
<!-- Container with stats like score, time, difficulty, etc. -->
<fieldset class="stats-container">
<legend>STATS</legend>
<dv class="stats">
<p id='player'>PLAYER : GUEST</p>
<p id='score'>SCORE : 0</p>
<p id='level'>LEVEL : 0</p>
</dv>
</fieldset>
<!-- Container with highscore results from all players -->
<fieldset class='highscores-container'>
<legend>HIGHSCORES</legend>
<div class='highscores'>
<p id='highscore1'> </p>
<p id='highscore2'> </p>
<p id='highscore3'> </p>
<p id='highscore4'> </p>
<p id='highscore5'> </p>
<p id='highscore6'> </p>
<p id='highscore7'> </p>
<p id='highscore8'> </p>
</div>
</fieldset>
</div>
<!-- Middle part of body -->
<div class='middle-box'>
<!-- Main game contaier -->
<fieldset id='game-board-container' class='game-container'>
<legend>GAME</legend>
<div id ='game-menu'>
<label>
PLAYER :
<input type="text" id='player-name'>
</label>
<p>|--------------------------------------------|</p>
<p>| PRESS SPACE TO START GAME |</p>
<p>|--------------------------------------------|</p>
</div>
<div id='game-board'>
</div>
</fieldset>
</div>
<!-- Right part of body -->
<div class='right-box'>
<div class='pieces-boards'>
<!-- Container with display of next item in game -->
<fieldset id='next-piece-board-container' class='piece-board-container'>
<legend>NEXT</legend>
<div id='next-piece-board'>
</div>
</fieldset>
<!-- Container with display of hold item in game -->
<fieldset id='hold-piece-board-container' class='piece-board-container'>
<legend>HOLD</legend>
<div id='hold-piece-board'>
</div>
</fieldset>
</div>
<!-- Container with game instructions -->
<fieldset class='help-container'>
<legend>HELP</legend>
<div class='help'>
<p>SPACE --- PLAY/PAUSE</p>
<p>DOWN --- MOVE DOWN</p>
<p>LEFT --- MOVE LEFT</p>
<p>RIGHT --- MOVE RIGHT</p>
<p>KEY D --- ROTATE -90</p>
<p>KEY A --- ROTATE 90</p>
<p>KEY W --- HOLD NEXT PIECE</p>
<p>KEY S --- USE HOLD PIECE</p>
</div>
</fieldset>
</div>
</main>
<footer>
<p class="copyright">© 2019 DUSAN PANTELIC</p>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type='application/javascript' src="script.js"></script>
</body>
</html>