-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (72 loc) · 2.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Snake</title>
<meta charset="UTF-8">
<meta http-equiv="content-language" content="pt-br">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Jodecir Neto">
<link rel="icon" href="icon/favicon.ico">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/responsive.css">
<script src="js/script.js" defer></script>
<script src="https://kit.fontawesome.com/a076d05399.js" defer></script>
<script src="js/dark-mode.js" defer></script>
</head>
<body>
<div class="game-wrapper">
<div class="checkbox-container">
<div class="checkbox-wrapper">
<input type="checkbox" id="toggle">
<label class="checkbox" for="toggle">
<div class="trace"></div>
<div class="trace"></div>
<div class="trace"></div>
</label>
<div class="menu"></div>
<nav class="menu-items">
<div class="group">
<div>
<button action="startGame()" id="restart"><i class="fas fa-redo"></i></button>
</div>
<div class="player">
<label id="tailSize">Size: 1</label>
</div>
</div>
</nav>
</div>
</div>
<div>
<ul>
<li>S</li>
<li>N</li>
<li>A</li>
<li>K</li>
<li>E</li>
</ul>
<div class="game-container">
<canvas id="snake" width="480" height="480"></canvas>
</div>
</div>
<div class="hud">
<div class="group">
<div class="dark-checkbox">
<input type="checkbox" class="checkbox" id="chk"/>
<label class="label" for="chk">
<i class="fa fa-moon"></i>
<i class="fa fa-sun"></i>
<div class="ball"></div>
</label>
</div>
<div>
<button action="startGame()" id="restart"><i class="fas fa-redo"></i></button>
</div>
<div class="player">
<label id="tailSize">Size: 1</label>
</div>
</div>
</div>
</div>
<audio src="sound/Apple Bite.mp3" preload="auto" id="appleBiteSound"></audio>
</body>
</html>