-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
78 lines (68 loc) · 2.99 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
<!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>Dismantle Snake</title>
<link rel="shortcut icon" href="./assets/Icon/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="./assets/CSS/index.css">
<link rel="stylesheet" href="./assets/CSS/instructions.css">
<link rel="stylesheet" href="./assets/CSS/food.css">
<link rel="stylesheet" href="./assets/CSS/snake.css">
</head>
<body>
<main>
<div class="container">
<div id="score"></div>
<div id="canvas">
<div id="instructions">
<div>
<img src="./assets/Images/Eat/Frog.png">
<p>Eating this will Increase your Snake's Length <br /> (i.e score)</p>
</div>
<div>
<div class="info">
<img class="edible" src="./assets/Images/Eat/Disassemble.png">
<img class="arrow" src="./assets/Images/Instructions/Arrow.png">
<img class="effect" src="./assets/Images/Instructions/Separate.png">
</div>
<p>Eating this will Disassemble (Dismantle) <br /> your Snake's body</p>
</div>
<div>
<div class="info">
<img class="edible" src="./assets/Images/Eat/Assemble.png">
<img class="arrow" src="./assets/Images/Instructions/Arrow.png">
<img class="effect" src="./assets/Images/Instructions/Join.png">
</div>
<p>Eating this will Re-assemble your Snake's body</p>
</div>
<div>
<img src="./assets/Images/Instructions/Dead.png">
<p>Crashing into your own body will result in <br /> Game Over!!</p>
</div>
<div>
<img src="./assets/Images/Instructions/Teleport.png">
<p>Snake can Teleport across the edges</p>
</div>
<div>
<button onclick="startIt()">
Click Here
<br />Or<br />
Press Enter
<br />
To PLAY
</button>
</div>
</div>
<div id="food"></div>
<div id="snake"></div>
</div>
<div id="highscore"></div>
</div>
</main>
<script defer src="./assets/JS/Classes/snake.js"></script>
<script defer src="./assets/JS/Classes/food.js"></script>
<script defer src="./assets/JS/sketch.js"></script>
</body>
</html>