-
Notifications
You must be signed in to change notification settings - Fork 0
/
snakegame.html
30 lines (26 loc) · 896 Bytes
/
snakegame.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake Game</title>
<link rel="stylesheet" href="snakegame.css">
</head>
<body>
<div class="body">
<h1>Snake Game</h1>
<p id="time"></p>
<div id="scoreBox">Score: 0</div>
<!-- <div id="hiscoreBox">HiScore: 0</div> -->
<div id="board"></div>
<div class="direct">
<button class="up" onclick="upfunction()">Up</button>
<button class="left" onclick="leftfunction()">Left</button>
<button class="right" onclick="rightfunction()">Right</button>
<button class="down" onclick="downfunction()">Down</button>
</div>
</div>
</body>
<script src="snakegame.js"></script>
</html>