-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (47 loc) · 1.91 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 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>Document</title>
<link rel="stylesheet" href="css/style.css">
<script src="scripts/Food.js"></script>
<script src="scripts/Snake.js"></script>
<script src="scripts/Game.js"></script>
</head>
<body onload="getStarted();">
<div id="container">
<header id="head">
<h1>Snake</h1>
<small class="author">by <a href="https://github.com/d-r-lenin">d-r-lenin</a></small>
</header>
<section id="section">
<div class="in-sec" id="score">0</div>
<div class="in-sec" id="high-score">0</div>
</section>
<section id="game-display">
<div id="game-place">
<canvas id="can" width="500px" height="500px"></canvas>
<div id="gameover-card" class="hide">
<h3>Game Over</h3>
<button>Retry</button>
</div>
</div>
<div class="in-game" id="btns">
<button class="button" onclick="game.pause()" id="pause-btn">Pause</button>
<button class="button" onclick="game.resume()" id="resume-btn">Resume</button>
</div>
</section>
<section id="controll" >
<ul>
<li id="up"><button>UP</button></li>
<li id="down"><button>DOWN</button></li>
<li id="left"><button>LEFT</button></li>
<li id="right"><button>RIGHT</button></li>
</ul>
</section>
</div>
<script src="scripts/script.js"></script>
</body>
</html>