-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
35 lines (33 loc) · 1.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake_game</title>
<link rel="icon" href="https://raw.githubusercontent.com/SameerSinghal26/Snake_game/main/images/icon.png">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="scores">
<h1 id="score">000</h1>
<button id="startButton">Start Game</button>
<h1 id="highScore">000</h1>
</div>
<div class="border1">
<div class="border2">
<div id="board3" class="box"></div>
</div>
</div>
<h1 id="instruction-text">Press Space / Button to start the game</h1>
<img id="logo" src="https://raw.githubusercontent.com/SameerSinghal26/Snake_game/main/images/snake_logo.png" alt="snake-logo" />
<div id="keyboard">
<button class="up" onclick="virtualKey(38)">↑</button><br>
<button class="left" onclick="virtualKey(37)">←</button>
<button class="down" onclick="virtualKey(40)">↓</button>
<button class="right" onclick="virtualKey(39)">→</button>
</div>
</div>
<script src="javascript.js" defer></script>
</body>
</html>