-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (75 loc) · 2.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The Snake Game</title>
<link rel="stylesheet" href="styles.css" />
<link
href="https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@900&display=swap"
rel="stylesheet"
/>
<link rel="icon" href="images/snakeFav.png" />
<script
src="https://kit.fontawesome.com/a455e9d3da.js"
crossorigin="anonymous"
></script>
</head>
<body>
<div id="instructions">
<div id="instruction_steps">
<h1>THE SNAKE GAME</h1>
<div>
<h3 class="inst_heading">Instructions</h3>
<h3>1. This is the popular SNAKE GAME!</h3>
<h3>
2. The Snake is always hungry and the food is right before its eyes.
</h3>
<h3>
3. Help the snake by controlling its movements so that it can eat
the food and grow.
</h3>
<h3>
4. Use
<i class="fas fa-arrow-up"></i>
<i class="fas fa-arrow-down"></i>
<i class="fas fa-arrow-left"></i>
<i class="fas fa-arrow-right"></i>
to control its movements. If the snake hits the wall, the game ends.
</h3>
<h3>5. Set the difficulty on the top right.</h3>
<h3>6. Start the Game. Enjoy!!!</h3>
<h3>
7. Note! Increasing the difficulty increases the snake's speed!
</h3>
<h3>8. Reload the page to restart the game.</h3>
</div>
<h2>Got it!</h2>
</div>
</div>
<div class="show_game" id="game_container">
<div id="heading">
<h1>THE SNAKE GAME</h1>
</div>
<div id="score_board">
<h3>SCORE</h3>
<h1 id="display_score">0</h1>
</div>
<div id="game_level">
<h2>Difficulty</h2>
<div id="set_level">
<h2 class="change_level minus">-</h2>
<h2 id="display_level">0</h2>
<h2 class="change_level plus">+</h2>
</div>
<div id="game_start">
<h1>START</h1>
</div>
</div>
<div id="canvas_parent">
<canvas id="my_canvas"></canvas>
</div>
</div>
<script src="index.js"></script>
</body>
</html>