-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (39 loc) · 1.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake Game</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="container">
<div id="scores">
<div class="score-labels" id="score">
Score
<div class="box" id="score-box">
000
</div>
</div>
<div class="score-labels" id="high-score">
High Score
<div class="box" id="high-score-box">
000
</div>
</div>
</div>
<div id="game-border">
<div id="game-board">
</div>
</div>
</div>
<h1 class="instructions" id="start-instruction">press spacebar to start the game</h1>
<img id="snake-logo" src="https://clipart-library.com/images_k/snake-transparent-png/snake-transparent-png-12.png" alt="">
<h1 id="game-over">game over</h1>
<h1 class="instructions" id="restart-instruction">press spacebar to restart</h1>
<script src="script.js"></script>
</body>
</html>