-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (47 loc) · 1.67 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>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="stylesheet" href="style.css">
<script src="script.js" defer></script>
</head>
<body>
<div id="main">
<div id="snek">
<img id ="logo"src="snake-game-ai-gen.png" alt="snake-logo">
<h1 id="instruction-text">Press Spacebar To Start The Game</h1>
</div>
<div>
<div class="scores">
<h1 id="score">000</h1>
<h1 id="globalScore">000</h1>
<h1 id="highScore">000</h1>
</div>
<div class="game-border-1">
<div class="game-border-2">
<div class="game-border-3">
<div id="game-board">
</div>
</div>
</div>
</div>
<div class="sButton">
<input type="button" class="bButton" value="Play" onclick="startGame();">
<input type="button" class="bButton" value="Pause" onclick="onPause();" >
</div>
</div>
<div >
<input type="button" class="bButton" value="▲" style="margin-left: 235px;" id ="upButton">
</div>
<div style="justify-content:s;">
<input type="button" class="bButton" value="◀" style="margin-left: 125px;" id="leftButton" >
<input type="button" class="bButton" value="▶" style="margin-left: 160px;" id="rightButton">
</div>
<div>
<input type="button" class="bButton" value="▼" style="margin-left: 235px;" id = "downButton">
</div>
</div>
</div>
</body>
</html>