-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
25 lines (25 loc) · 1.01 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
<!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">
<title>Snake</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Lato&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<div class="logo">Snake by <a href="https://github.com/andrewgul" target="blank">andrewgul</a></div>
<div class="how-to">Move – arrows, pause – space</div>
<div class="canvas-wrapper">
<div class="paused-label">Game is paused</div>
<canvas id="cvs" width="500" height="500"></canvas>
</div>
<div class="score" id="score">Your score: 0</div>
<div class="highscore" id="highscore">Highscore: 0</div>
</div>
<script src="code.js"></script>
</body>
</html>