-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
61 lines (57 loc) · 1.73 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
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SNAKE</title>
<link href='https://fonts.googleapis.com/css?family=Press+Start+2P' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" src="//normalize-css.googlecode.com/svn/trunk/normalize.css" />
<meta name="viewport" content="width=device-width" />
</head>
<body>
<div class="header">
<div class="header-content" id="header">
<h2>SNAKE</h2>
<div class="score">
Current Score: <span id="currentScore">0</span>
</div>
<div id="bonusFoodTimer"></div>
</div>
</div>
<div class="initial-text" id="infoContainer">
<h1>SNAKE</h1>
<div class="initial-buttons">
<button class="reset" id="reset"> RESET </button>
<button class="start" id="start"> START </button>
<button class="controls" id="controls"> CONTROLS </button>
<button class="continue" id="continue"> CONTINUE </button>
<button class="back" id="back"> BACK </button>
</div>
<div id="controlsInfo" class="controls-info">
<div class="desktop">
<div>W = Up</div>
<div>S = Down</div>
<div>A = Left</div>
<div>D = Right</div>
<div>SPACEBAR = Start/Pause</div>
</div>
<div class="mobile">
<div>Swipe up = Up</div>
<div>Swipe down = Down</div>
<div>Swipe left = Left</div>
<div>Swipe right = Right</div>
</div>
</div>
<div id="scoresInfo" class="controls-info">
</div>
</div>
<div class="content">
<div class="game">
<canvas id="canvas">
YOUR BROWSER DOESN'T SUPPORT CANVAS YET
</canvas>
</div>
</div>
<script src="js/main.js"></script>
</body>
</html>