-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
102 lines (82 loc) · 2.71 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!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="style.css">
</head>
<body>
<header>
<a href="index.html" id="home">Home</a>
<h1>Snake Game</h1>
</header>
<main>
<div id="game-modes-wrapper">
<div id="mode-1" class="mode">
<h3>Border Mode</h3>
<button id="start-game-1" class="btn">Start</button>
</div>
<div id="mode-2" class="mode">
<h3>Borderless Mode</h3>
<button id="start-game-2" class="btn">Start</button>
</div>
<div id="mode-3" class="mode">
<h3>Peaceful Mode</h3>
<button id="start-game-3" class="btn">Start</button>
</div>
<div id="mode-4" class="mode">
<h3>Winged Mode</h3>
<button id="start-game-4" class="btn">Start</button>
</div>
<div id="mode-5" class="mode">
<h3>Cheese Mode</h3>
<button id="start-game-5" class="btn">Start</button>
</div>
<div id="mode-6" class="mode">
<h3>Timer Mode</h3>
<button id="start-game-6" class="btn">Start</button>
</div>
<div id="mode-7" class="mode">
<h3>Dual Mode</h3>
<button id="start-game-7" class="btn">Start</button>
</div>
<div id="mode-8" class="mode">
<h3>Double-headed Mode</h3>
<button id="start-game-8" class="btn">Start</button>
</div>
<div id="mode-9" class="mode">
<h3>Portal Mode</h3>
<button id="start-game-9" class="btn">Start</button>
</div>
</div>
<div id="game-wrapper">
<div id="score-wrapper">
<div><span>Score: </span><span id="total-score">0</span></div>
<div><span>Length: </span><span id="length-score">4</span></div>
<div><span>Fruits: </span><span id="food-score">0</span></div>
</div>
<canvas width="300" height="400"></canvas>
</div>
</main>
<script src="js/utils/snake.js"></script>
<script src="js/utils/snakeCheesy.js"></script>
<script src="js/utils/food.js"></script>
<script src="js/utils/foodWinged.js"></script>
<script src="js/utils/score.js"></script>
<script src="js/utils/gameCanvas.js"></script>
<script src="js/utils/sounds.js"></script>
<script src="js/game/mainGame1.js"></script>
<script src="js/game/mainGame2.js"></script>
<script src="js/game/mainGame3.js"></script>
<script src="js/game/mainGame4.js"></script>
<script src="js/game/mainGame5.js"></script>
<script src="js/game/mainGame6.js"></script>
<script src="js/game/mainGame7.js"></script>
<script src="js/game/mainGame8.js"></script>
<script src="js/game/mainGame9.js"></script>
<script src="js/init/gameInit.js"></script>
<script src="js/init/loader.js"></script>
</body>
</html>