forked from indremak/Snake-Game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (68 loc) · 2.06 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<title>Snake Game</title>
</head>
<body>
<div class="info">
<div class="scores">
<div class="score">
Score<br />
<span class="score-number">0</span>
</div>
<div class="score">
High Score<br />
<span class="high-score-number">0</span>
</div>
</div>
<div class="controls">
<button class="btn-start">Start</button>
<button class="btn-pause" disabled>Pause</button>
<button class="btn-newGame material-icons icon-replay">replay</button>
<button class="btn-bgm">Stop Music</button>
<button class="btn-audio">
<span class="material-icons icon-audio-on">volume_up</span>
<span class="material-icons icon-audio-off hidden">volume_off</span>
</button>
</div>
</div>
<div class="game-board">
<div class="board"></div>
<div id="game-over">
Game over!
<p class="restart-msg">Press R to restart</p>
</div>
</div>
<div>
<audio id="player" autoplay loop hidden>
<source
src="./assets/sounds/amazing-plan-by-kevin-macleod-from-filmmusic-io.mp3"
type="audio/mpeg"
/>
audio isn't supported.
</audio>
</div>
<div class="hard">
<span class="hard-span">Inverted hard mode:</span>
<div class="slider-box">
<input type="checkbox" id="switch__checkbox" />
<label class="switch" for="switch__checkbox">
<span class="slider"></span>
</label>
</div>
<p class="desc">Controls are now inverted!</p>
</div>
<script src="./index.js"></script>
</body>
</html>