-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (27 loc) · 930 Bytes
/
index.html
File metadata and controls
52 lines (27 loc) · 930 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
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
<!DOCTYPE html>
<html lang="pt-BR">
<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="src/css/index.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="src/js/game.js"></script>
</body>
</html>