-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
37 lines (36 loc) · 1.08 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="style.css">
<script language="javascript" type="text/javascript" src="snake-game.js"></script>
<title>
Snek
</title>
</head>
<body onload="start()">
<div class="snake-gamefield">
<div class="text-center">
__<br>
________________/ O \__/<br>
<_/_\_/_\_/_\_/_\_/____/ \<br>
</div>
<canvas id="js-snake-canvas" width="350" height="350"></canvas>
<p class="js-score"></p>
<div class="game-over text-center">
<h2>Game over</h2>
<p>
Press SPACE to reset game.
</p>
</div>
</div>
<footer class="text-center footer">
Visit Snek on github.<br />
<a href="https://github.com/programmiri/snek-game">https://github.com/programmiri/snek-game</a>
</footer>
</body>
</html>