-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (30 loc) · 1.17 KB
/
index.html
File metadata and controls
30 lines (30 loc) · 1.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="author" content="K Bodie Weedop">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/css/main.css">
<script src="assets/js/p5.min.js"></script>
<title>Snake Game in JS</title>
</head>
<body>
<header>
<nav>
<li><a href="https://github.com/bweedop/snake/blob/master/index.html">HTML</a></li>
<li><a href="https://github.com/bweedop/snake/blob/master/assets/css/main.css">CSS</a></li>
<li><a href="https://github.com/bweedop/snake/blob/master/assets/js/sketch.js">JavaScript</a></li>
</nav>
</header>
<div id="container-game"></div>
<div class="container-btn">
<button id="btn-play" onclick="playGame()">Play</button>
<button id="btn-reset" onclick="resetGame()">Reset</button>
</div>
<h2 id="gameOver">Game Over!</h2>
<div class="container-score">
<h2>Score:</h2>
<h2 id="score">0</h2>
</div>
</body>
<script type="text/javascript" src="./assets/js/sketch.js"></script>
</html>