-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
158 lines (135 loc) · 6.87 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<!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="assets/styles/style.css">
<link rel="stylesheet" href="assets/font-awesome/fontawesome-all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;700&family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<link rel="icon" href="assets/images/favicon.png">
<title>Snake Game</title>
</head>
<body>
<div class="menu-top">
<i class="fa fa-pause" id="statusGame"></i>
<label class="container-set-theme">
<input name="theme" type="checkbox" class="button-set-theme"/>
<span class="theme-toggle"></span>
</label>
<i class="fa fa-apple-alt"></i> <div class="ponctuation">001pts</div>
</div>
<canvas id="box"></canvas>
<div class="screen-mask settings-container">
<div class="settings-box">
<div class="settings-menu-top">
<div class="item customize-button" id="actived">
<p>Customize</p>
</div>
<div class="item commands-button" id="desactived">
<p>Commands</p>
</div>
</div>
<div class="settings-content-container customize-settings-container">
<div class="setting-box-section difficulty-section">
<h1 class="title">Difficulty</h1>
<select name="difficulty" id="select-difficulty">
<option value="easy">Easy</option>
<option value="normal" selected>Normal</option>
<option value="hard">Hard</option>
</select>
</div>
<div class="setting-box-section game-mode-section">
<h1 class="title">Game Mode</h1>
<div class="game-mode-select">
<div class="container-set-game-mode">
<input id="walls-dont-collide" name="game-mode" type="radio" class="button-set-game-mode" checked/>
<label for="walls-dont-collide"><img src="assets/gif/gamemode1.gif" alt="walls dont collide"></label>
</div>
<div class="container-set-game-mode">
<input id="walls-collide" name="game-mode" type="radio" class="button-set-game-mode"/>
<label for="walls-collide"><img src="assets/gif/gamemode2.gif" alt="walss collide"></label>
</div>
</div>
</div>
</div>
<div class="settings-content-container commands-settings-container">
<div class="setting-box-section move-section">
<h1 class="title">Move</h1>
<div class="commands-container commands-to-move">
<div class="commands-key-to-move arrows-commands-to-move">
<div class="command-key-button key-arrow-up">
<div class="command-key">
<i class="fa fa-caret-up"></i>
</div>
</div>
<div class="command-key-button key-arrow-left">
<div class="command-key">
<i class="fa fa-caret-left"></i>
</div>
</div>
<div class="command-key-button key-arrow-down">
<div class="command-key">
<i class="fa fa-caret-down"></i>
</div>
</div>
<div class="command-key-button key-arrow-right">
<div class="command-key">
<i class="fa fa-caret-right"></i>
</div>
</div>
</div>
<div class="others-key-container">OR</div>
<div class="commands-key-to-move letters-commands-to-move">
<div class="command-key-button key-arrow-up">
<div class="command-key">
<p>W</p>
</div>
</div>
<div class="command-key-button key-arrow-left">
<div class="command-key">
<p>A</p>
</div>
</div>
<div class="command-key-button key-arrow-down">
<div class="command-key">
<p>S</p>
</div>
</div>
<div class="command-key-button key-arrow-right">
<div class="command-key">
<p>D</p>
</div>
</div>
</div>
</div>
</div>
<div class="setting-box-section pause-section">
<h1 class="title">Pause</h1>
<div class="commands-container command-to-pause">
<div class="command-key-button key-esc">
<div class="command-key">
<p>Esc</p>
</div>
</div>
</div>
</div>
</div>
<div class="settings-box-footer">
<button class="button-start-game">Start</button>
</div>
</div>
</div>
<div class="screen-mask game-start-container">
<p>M O V E T O S T A R T</p>
</div>
<div class="screen-mask game-paused-container">
<p>G A M E P A U S E D</p>
</div>
<div class="screen-mask game-over-container">
<p class="game-over">G A M E O V E R</p>
<p class="press-to-continue">P r e s s S p a c e t o c o n t i n u e</p>
</div>
<script src="assets/scripts/theme.js"></script>
<script src="game.js"></script>
</body>
</html>