-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (37 loc) · 1.26 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Snake Game</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/p5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.5.0/addons/p5.sound.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<meta charset="utf-8" />
</head>
<body>
<header>
<nav>
<a href="index.html">Play</a>
<a href="leaderboard.html">Leaderboard</a>
<a href="https://github.com/Lazy-Coder-03/Snake-Game-browser">View Code</a>
</nav>
</header>
<main>
<div id="score">Score: 0</div>
<div id="high-score">High Score: 0</div>
</main>
<div id="start">
<button id="start-button">Start</button>
</div>
<div id="controls">
<button id="music-toggle-button">Music</button>
<button id="sound-toggle-button">Sounds</button>
<button id="toggle-grid-button">Grid</button>
<button id="toggle-wall-button">Wall</button>
</div>
<script src="sketch.js"></script>
<script src="snake.js"></script>
<script src="food.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase.js"> </script>
</script>
</body>
</html>