-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (35 loc) · 1.17 KB
/
index.html
File metadata and controls
36 lines (35 loc) · 1.17 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="styles.css">
<title>Snake</title>
<script src="./index.js"></script>
<style type="text/css">
</style>
</head>
<body onload="draw();" style="background-color: rgb(168, 214, 131)">
<div class="x">
<div style="line-height: 0.5px;">
<h1>Snake</h1>
<p class="a">A recreation of the classic flash game, by Numan Mir</p>
</div>
<div>
<canvas id="canvas" width="576" height="576"></canvas>
</div>
<div>
<p id="apples">Apple count: 0</p>
</div>
</div>
<!-- Modal -->
<div id="modal" class="modal">
<div class="modal-content">
<h2>Game Over</h2>
<p>You got <span id="score"></span></p>
<button onclick="retry();" id="try-again-btn">Try again</button>
</div>
</div>
</body>
</html>