-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (50 loc) · 1.58 KB
/
index.html
File metadata and controls
52 lines (50 loc) · 1.58 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- HTML settings -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snakey Game</title>
<!-- CSS styles -->
<link rel="stylesheet" href="./assets/css/app.min.css">
<!-- JS scripts -->
<script src="./assets/js/app.js" type="module" defer></script>
</head>
<body>
<header>
<div id="keyset-select">
Commands :
<select>
<option value="ZQSD">ZQSD</option>
<option value="WASD">WASD</option>
</select>
or arrow keys
</div>
</header>
<main>
<p id="score-zone">Your score : <span id="score">0</span></p>
<canvas width="400" height="400" id="canvas"></canvas>
</main>
<footer></footer>
<aside id="scoreboard">
<p>Best scores</p>
<hr>
<table>
<thead>
<tr>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
<tbody id="score_table"></tbody>
</table>
</aside>
<dialog id="gameover">
<div>
<p id="gameover-message"></p>
<input type="text" id="username" placeholder="Your username here" required>
<a href="#" id="gameover-button" onclick=""></a>
</div>
</dialog>
</body>
</html>