-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (67 loc) · 3.42 KB
/
index.html
File metadata and controls
72 lines (67 loc) · 3.42 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
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
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Game Time</title>
<link rel="stylesheet" href = "./lib/styles.css" type = "text/css">
<link href="https://fonts.googleapis.com/css?family=Antic+Didone" rel="stylesheet">
</head>
<body>
<div class="main-image">
<div class="game-score-div">
<img src = "./lib/images/apple2.png" alt ="score apple image"/ class="score-icon">
<span class="score big-score"></span>
</div>
<img src ="./lib/images/caterpillar-sun-canvas-2.png" alt ="sun smiling" class="sun" />
<div class ="top-score-div">
<img src = "./lib/images/butterfly.png" alt ="high score butterfly image" class ="score-icon-2"/>
<span class="high-score big-score"></span>
</div>
</div>
<main>
<canvas id = "game" width ="600" height = "600"> </canvas>
<section id = "start-screen">
<article class ="game-screen">
<div class = "image-button-container">
<div class ="head-container">
<h1 class="accent-color"> Feed </h1>
<h1> The</h1>
<h1> Very Hungry </h1><h1>Caterpillar </h1>
<div class = "button-div">
<input type = "button" value ="Easy" id = "easy" class = "game-buttons"/>
<input type = "button" value ="Difficult" id = "difficult" class = "game-buttons"/>
</div>
</div>
</div>
</article>
</section>
<section id = "instruction-screen" class="hide">
<img src ="./lib/images/click-arrow-icon.png" alt ="instructions" />
<p> Press space bar to start </p>
</section>
<section id = "game-over-screen" class = "hide">
<h3 class="game-over-hed"> Game over </h3>
<img src = "./lib/images/dead-caterpillar.png" alt = "dead snake image" />
<p><span class="accent-2">Your Score:</span> <strong><span class="end-score"></span></strong> <span class="accent-2">High Score:</span> <strong> <span class="end-high-score"></span></strong></p>
<p class = "high-score-message"> </p>
<input type = "button" value ="Play again" id = "play-again" class = "game-buttons start-button"/>
</section>
</main>
<img id="cater-head-vertical" class = "snake-piece hide" src="./lib/images/head-vertical.png">
<img id="cater-head-horizontal" class = "snake-piece hide" src="./lib/images/head-horizontal.png">
<img id="cater-body1" class = "snake-piece hide" src="./lib/images/body1.png">
<img id="cater-body2" class = "snake-piece hide" src="./lib/images/body2.png">
<img id="cater-body3" class = "snake-piece hide" src="./lib/images/body3.png">
<img id="cater-body4" class = "snake-piece hide" src="./lib/images/body4.png">
<img id="cater-body5" class = "snake-piece hide" src="./lib/images/body5.png">
<img id="cater-legs-vertical1" class = "snake-piece hide" src="./lib/images/legs-1-vertical.png">
<img id="cater-legs-horizontal1" class = "snake-piece hide" src="./lib/images/legs-1-horizontal.png">
<img id="cater-legs-vertical2" class = "snake-piece hide" src="./lib/images/legs-2-vertical.png">
<img id="cater-legs-horizontal2" class = "snake-piece hide" src="./lib/images/legs-2-horizontal.png">
<img id="apple" class ="hide" src="./lib/images/apple2.png">
<img id="orange" class ="hide" src="./lib/images/orange.png">
<img id="pear" class ="hide" src="./lib/images/pear.png">
<img id="strawberry" class ="hide" src="./lib/images/strawberry.png">
<script src="./main.bundle.js"></script>
</body>
</html>