-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (41 loc) · 979 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html>
<html>
<head>
<title>Snake</title>
<link rel="stylesheet" type="text/css" href="./stylesheets/snake.css">
<link href="https://fonts.googleapis.com/css?family=Press+Start+2P" rel="stylesheet">
</head>
<body>
<div class="start-screen">
<div class="start-text">
<h1>Snake</h1>
<h4>A snake game made using HTML, CSS, and Javascript</h4>
<button>New Game</button>
</div>
</div>
<div class="board hide">
<div class="box">
</div>
<div class="point-box">
</div>
</div>
<div class="modal">
<div>
<h3>Paused</h3>
<p>Press [space] to resume.</p>
</div>
</div>
<div class="modal">
<div>
<h3>Game over !</h3>
<p>You died :(</p>
<button>Play again ?</button>
</div>
</div>
<div class='footer hide'>
<a href="https://github.com/zZzakaria/SnakeJS">Source code</a>
<span id="length-label">Length: <span id="length">1</span></span>
</div>
<script type="text/javascript" src="./js/snake.js"></script>
</body>
</html>