-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (39 loc) · 1.34 KB
/
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
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<title>Snake Game</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./src/styles/styles.css">
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body>
<div class="record">
<p class="score" style="color: #ffa372"></p>
<p class="best-score" style="color: #ed6663"></p>
</div>
<canvas class="canvas"></canvas>
<table class="arrows">
<tr>
<td colspan="3"><i id = "up" data-feather="arrow-up-circle"></i></td>
</tr>
<tr>
<td><i class="red" id = "left" data-feather="arrow-left-circle"></i></td>
<td><img /></td>
<td><i class="red" id = "right" data-feather="arrow-right-circle"></i></td>
</tr>
<tr>
<td colspan="3"><i id = "down" data-feather="arrow-down-circle"></i></td>
</tr>
</table>
<script>
feather.replace()
</script>
<script src="./src/js/canvas.js"></script>
<script src="./src/js/touchscreenDetection.js"></script>
<script src="./src/js/controlSnake.js"></script>
<script src="./src/js/food.js"></script>
<script src="./src/js/snake.js"></script>
<script src="./src/js/record.js"></script>
<script src="./src/js/index.js"></script>
</body>
</html>