-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
26 lines (26 loc) · 796 Bytes
/
index.html
File metadata and controls
26 lines (26 loc) · 796 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Snake Game</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="game-container">
<canvas id="gc" class="game-canvas" width="400" height="400"></canvas>
</div>
<div class="keys">
<a class="up arr" onclick="Snake.action('up')">
<i class="chevron up"></i></a>
<br />
<a class="left arr" onclick="Snake.action('left')">
<i class="chevron left"></i></a>
<a class="down arr" onclick="Snake.action('down')">
<i class="chevron down"></i></a>
<a class="right arr" onclick="Snake.action('right')">
<i class="chevron right"></i></a>
</div>
<script type="text/javascript" src="game.js"></script>
</body>
</html>