-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
65 lines (56 loc) · 2.42 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
62
63
64
65
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="index.css">
<link href="https://fonts.googleapis.com/css?family=Nova+Flat" rel="stylesheet">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1">
<title>Retro Snake</title>
<script src="app.js" defer></script>
</head>
<body>
<!--GAME LANDING PAGE -->
<div id="firstPageContainer">
<h1 id="title">Retro</h1>
<img id="logo" src="./public/snake-logo.jpg" alt="snake-logo" height="85" width="170">
<button id="button"><b> Play</b></button>
</div>
<!-- GAME INSTRUCTION PAGE -->
<div id="instructionCont">
<div id="headerCont">
<h1 id="direction"><u>INSTRUCTIONS:</u></h1>
</div>
<div id="directionCont">
<img id="arrowImg" src="./public/arrow-keys.png" height="60" width="90" alt="">
<div id="text">
<h2>Use arrows to</h2>
<h2>change directions</h2>
</div>
</div>
<div id="ruleCont">
<img src="./public/game-rules-img.png" height="60" width="200" alt="">
</div>
<div id="buttonCont">
<button class="button" onclick="easy()" id="easy">Easy</button>
<button class="button" onclick="medium()" id="medium">Medium</button>
<button class="button" onclick="hard()" id="hard">Hard</button>
<button class="button" onclick="pro()" id="pro">Pro</button>
</div>
<div class="pressCont">
<div class="press" id="press1">1</div>
<div class="press" id="press2">2</div>
<div class="press" id="press3">3</div>
<div class="press" id="press4">4</div>
</div>
</div>
<!-- GAME PAGE -->
<div class="gameContainer" >
<h1 id="score">SCORE: 0</h1>
<canvas id="canvas" width="208" height="208" style="border:5px solid #000000; display: none;"></canvas>
<div id="gameoverCont">
<button onclick="restart()" id="againButton">Play again</button>
<img src="./public/gameover.png" alt="gameover" id="gameover" height="180" width="180">
</div>
</div>
</body>
</html>