-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
59 lines (54 loc) · 1.31 KB
/
index.html
File metadata and controls
59 lines (54 loc) · 1.31 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<!--
Info: Created on 17.03.2018
-->
<html>
<head>
<meta charset="utf-8" />
<title>Snake Game</title>
<link rel="stylesheet" type="text/css" href="pageStyle.css">
</head>
<body>
<div class="pageContainer">
<div class="centering">
<div id="popup">
<div>Enter your name:</div>
<input id="name" type="text"/><br/>
<button id="submit" onclick="sendName()">Submit</button>
<button onclick="closePopup()">Cancel</button>
</div>
<div class="instruct">
<h3>Menu: </h3>
<p>none </p>
<h3>Controls: </h3>
<table class="controls">
<tr>
<td>p</td><td>pause/unpause</td>
</tr>
<tr>
<td>w / ↑</td><td>up</td>
</tr>
<tr>
<td>s / ↓</td><td>down</td>
</tr>
<tr>
<td>a / ←</td><td>left</td>
</tr>
<tr>
<td>d / →</td><td>right</td>
</tr>
</table>
<h3>Notes:</h3>
<p>Current bugs: none that I know of </p>
</div>
<canvas id="DrawingArea" width="480" height="500"></canvas>
<div class="high">
<h4>Highscores:</h4>
<div id="highscores">
</div>
</div>
</div>
</div>
<script src="game.js"></script>
</body>
</html>