-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
140 lines (139 loc) · 3.93 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!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" />
<title>myGame</title>
<link rel="stylesheet" href="styles.css" />
<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=Poppins:wght@500&family=Varela+Round&display=swap"
rel="stylesheet"
/>
<script
src="https://kit.fontawesome.com/19631a89fa.js"
crossorigin="anonymous"
></script>
</head>
<body>
<div id="informations">
<div id="score" class="scores">Score : 0</div>
<!-- <audio
id="eat-sound"
src="audios/mixkit-chewing-something-crunchy-2244.wav"
></audio> -->
<audio
id="background-music"
loop="loop"
src="audios/background-music.mp3"
></audio>
<div id="sound-on" class="">
<i class="fa-solid fa-volume-high"></i>
</div>
<div id="sound-off" class="hidden">
<i class="fa-solid fa-volume-off"></i>
</div>
<div id="best-score" class="scores">Best score : 0</div>
</div>
<div id="grid-container">
<div id="mask"></div>
<div class="grid blurred"></div>
<section class="pop-up" id="general-pop-up">
<h1>Snake</h1>
<div class="pop-up-buttons">
<button class="pop-up-btn" id="play-btn">Play</button>
<button class="pop-up-btn" id="options-btn">Options</button>
</div>
</section>
<section class="pop-up hidden" id="options-pop-up">
<div class="frame-options">
<img id="left-arrow" src="images/left-arrow.png" alt="left-arrow" />
<h2>Frame</h2>
<button class="fnf-buttons" id="frame-btn">Frame</button>
<button class="fnf-buttons frame-btn-selected" id="no-frame-btn">
No frame
</button>
</div>
<div class="speed options">
<h2>Speed</h2>
<div id="speed-level-slider">
<div class="radio-buttons">
<input
type="radio"
name="speed-level"
id="1"
value="1"
required
/>
<input
type="radio"
name="speed-level"
id="2"
value="2"
required
checked
/>
<input
type="radio"
name="speed-level"
id="3"
value="3"
required
/>
</div>
<div class="radio-labels">
<label for="1" speed="low">Low</label>
<label for="2" speed="medium">Medium</label>
<label for="3" speed="high">High</label>
</div>
</div>
</div>
</section>
</div>
<div id="mobile-cursor">
<div></div>
<div>
<img
class="cursor"
id="cursor-up"
src="images/cursor-up.png"
alt="cursor-up"
/>
</div>
<div></div>
<div>
<img
class="cursor"
id="cursor-left"
src="images/cursor-left.png"
alt="cursor-left"
/>
</div>
<div></div>
<div>
<img
class="cursor"
id="cursor-right"
src="images/cursor-right.png"
alt="cursor-right"
/>
</div>
<div></div>
<div>
<img
class="cursor"
id="cursor-down"
src="images/cursor-down.png"
alt="cursor-down"
/>
</div>
<div></div>
</div>
<script src="food.js"></script>
<script src="snake.js"></script>
<script src="game.js"></script>
<script src="main.js"></script>
</body>
</html>