-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (48 loc) · 1.57 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
<!DOCTYPE html>
<html>
<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">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<link rel="stylesheet" href="css/main.css">
<title>The Cookie Snake</title>
</head>
<body>
<header><h1>The Cookie Snake</h1></header>
<section class="offscreen">
<h2>Game Over</h2>
<p class="scoreText">
Your score is: <span id="finalScore"></span>
</p>
<button class="gameButton">Start Again?</button>
</section>
<section>
<h2 class="onscreenScores">
Your Snakes Length: <span id="theScore" class="scoreNumber"></span>
</h2>
</section>
<section class="theGameCanvas">
<canvas id="mySnakeCanvas" width="600" height="600">
Your browser does not support the canvas element.
</canvas>
</section>
<section>
<h2 class="onscreenScores">
Max Snakes Length: <span id="maxScore" class="scoreNumber"></span>
</h2>
</section>
<footer id="theFooter">
<h3>
<ul>
<li>DIRECTIONS:</li>
<li>Use the arrow keys to navigate your snake to the cookie.</li>
<li>Snake can not reverse direction.</li>
<li>Game over if you hit your tail or the edges.</li>
</ul>
</h3>
</footer>
<script src="js/obj.js"></script>
<script src="js/main.js"></script>
</body>
</html>