-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
29 lines (24 loc) · 994 Bytes
/
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
<!DOCTYPE html>
<html>
<title>Play Snake Game </title>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="bootstrap.css">
</head>
<body onload="window.alert('Welcome! Use arrow/direction keys to control your snake and eat food, and get as much score as possible! Remember not to eat yourself! Good Luck!');">
<!-- navigation panel -->
<ul class="sidenav">
<li><a class="active" href="#home">Play!</a></li>
<li><a href="#news">Leaderboard</a></li>
<li><a href="#contact">Your Profile</a></li>
<li><a href="#about">About</a></li>
</ul>
<div id="scores"><h1>Score </h1> <h4 id="score">0</h4></div>
<div id="distance">Distance : 0</div>
<div id="gameover"></div>
<canvas id = "myCanvas"></canvas>
<script src = "script.js"></script>
</body>
</html>