-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
40 lines (37 loc) · 1.43 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
<!DOCTYPE html>
<html>
<head>
<title>Snake Game App</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="icon" type="image/png" href="favicon.png">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
</head>
<body>
<div class="title">
<h1>Snake Game</h1>
</div>
<div class="canvasContainer">
<canvas id="myCanvas"></canvas>
<div class="overlay">
<div class="card" style="width:50em;">
<div class="card-header">
Welcome to the Snake Game!
</div>
<div class="card-body">
<h5 class="card-title">Instructions</h5>
<p class="card-text">
1) Use the arrow keys to control the snake <br/>
2) Press the P key to pause at any time <br/>
3) Avoid colliding with the walls and snake!
</p>
<a href="#" class="btn btn-primary">Play</a>
</div>
</div>
</div>
</div>
<h2 class="score">Score: </h2>
<h2 class="high-score">High Score: </h2>
<script type="text/javascript" src="script2.js"></script>
</body>
</html>