-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (40 loc) · 1.86 KB
/
index.html
File metadata and controls
44 lines (40 loc) · 1.86 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="mainWrapper">
<div class="title">SNAKE</div>
<div class="description">
<p>Challenge your reflexes and strategy in this timeless arcade game!</p>
<p>Use your 'W,A,S,D' keys to guide your snake to eat food and grow longer, but be careful not to collide with the walls or yourself.</p>
<div class="imagewrapper">
<img class="mouseimg" src="—Pngtree—mouse running away vector material_5756793.png" alt="">
<img class="snakeimg" src="—Pngtree—cobra clip art cartoon snake_5988793.png" alt="">
<img class="grassimg" src="favpng_animation-icon.png" alt="">
<img class="grassimg" src="favpng_animation-icon.png" alt="">
<img class="grassimg" src="favpng_animation-icon.png" alt="">
<img class="grassimg" src="favpng_animation-icon.png" alt="">
<img class="grassimg" src="favpng_animation-icon.png" alt="">
</div>
</div>
<div class="gameover"></div>
<div class="board">
<div class="scoresWrapper">
<div class="score">Score: 0</div>
<div class="highscore">High Score: 0</div>
</div>
<div class="gameContainer">
<canvas id="canvas"></canvas>
</div>
</div>
<button>New Game</button>
</div>
<script src="./script.js"></script>
</body>
</html>