-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (49 loc) · 2.17 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>Snake game</title>
<link href="https://fonts.googleapis.com/css?family=Fredoka+One" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./dist/styles.min.css">
<link rel="shortcut icon" href="./dist/images/favicon.ico" type="image/x-icon">
<link rel="icon" href="./dist/images/favicon.ico" type="image/x-icon">
</head>
<body>
<audio id="bite" src="./src/sfx/bite.mp3"></audio>
<audio id="loss" src="./src/sfx/loss.mp3"></audio>
<audio id="bg" src="./src/sfx/bg2.mp3"></audio>
<div id="container">
<div class="top"><p class="m-0">press <span id="tip">spacebar</span> to speed up the game</p><h2 id="score">Score: <span id="points">0</span></h2></div>
<div class="board">
<div class="snake-head"></div>
<div class="snake-food" id="food"></div>
<div class="mobile-controls">
<div class="btn-up"><img src="dist/images/Arrow.svg" alt="arrow up"></div>
<div class="btn-down"><img src="dist/images/Arrow.svg" alt="arrow down"></div>
<div class="btn-left"><img src="dist/images/Arrow.svg" alt="arrow left"></div>
<div class="btn-right"><img src="dist/images/Arrow.svg" alt="arrow right"></div>
</div>
</div>
</div>
<div class="cover">
<div class="play-again-box">
<h1 class="message">Oops! You lost</h1>
<input maxlength='4' type="text" name="username" id="username" placeholder="Name">
<button class="highest-scores" id="submitScoreBtn">Submit score</button>
<button class="again">Play Again</button>
</div>
<div class="highest-scores-box">
<h1 class="title">Highest Scores</h1>
<div class="score-entries"></div>
<button class="again m-5">Play Again</button>
</div>
<div class="start-box">
<h1 class="title">Sneaky Snake!</h1>
<button class="start" id="startGameBtn">Play Game</button>
<button type="button" name="soundBtn" class="soundBtn"><img src="./dist/images/sound.svg" alt="" id="sound"></button>
</div>
</div>
<script src="./dist/main.js"></script>
</body>
</html>