-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (44 loc) · 1.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Tetris!</title>
</head>
<body class="inp-screen">
<canvas class="full" id="c">
</canvas>
<div class="score">
</div>
<div class="full">
<div class="center">
<h1>Tetris!</h1>
<div class="row">
<input type="text">
<button onclick="startGame()">Start the game</button>
</div>
<div class="gamemode">
<div class="gamemode-score active" onclick="selectGamemode('score')">
<img src="resources/score.png" alt="score-icon">
<p>Score</p>
</div>
<div class="gamemode-time" onclick="selectGamemode('time')">
<img src="resources/time.png" alt="time-icon">
<p>Time</p>
</div>
</div>
</div>
</div>
<div class="leaderboard">
<h3>Leaderboard</h3>
<div class="leaderboard-content">
</div>
</div>
<script src="m3.js"></script>
<script src="tetris.js"></script>
<script src="layoutEngine.js"></script>
<script src="script.js"></script>
</body>
</html>