-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (65 loc) · 2.44 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
66
67
68
69
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The moles take revenge</title>
<link rel="stylesheet" href="./css/styles.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<script src="./js/script.js" defer></script>
<script src="./js/game.js" defer></script>
<script src="./js/moles.js" defer></script>
<script src="./js/holes.js" defer></script>
<script src="./js/player.js" defer></script>
</head>
<body>
<main>
<section>
<div id="image-overlay"></div>
<div id="game-board" class="game-board"></div>
<a href='https://pngtree.com/freepng/huge-cracks-in-the-ground_5725808.html' class="pngtree-link">Holes in the ground from pngtree.com</a>
<div id="holes"></div>
</section>
<section id="start-screen" class="start-screen">
<h1>Revenge of the moles</h1>
<p>Our time has finally come!</p>
<button id="begin-button">Let's begin</button>
<div class="instructions">
<p>
Use the <span>arrow keys</span> or <span>WASD</span> keys of your
keyboard to select the hole where you want to appear <br />
Press <span>space-bar</span> to appear and press it again to hide.
</p>
<div class="keys-img-container">
<img
src="./images/arrow-keys-spacebar.png"
alt=""
class="keys-img"
/>
<img
src="./images/wasd-keys-spacebar.png"
alt=""
class="keys-img"
/>
</div>
</div>
</section>
<section id="game-stats" class="game-stats">
<div id="stats">
<p></p>
<p>Lives left <div id="heart-icons"></div></p>
<p>Score: <span id="score">0</span></p>
<p>Time left: <span id="time-left">00:00</span></p>
</div>
</section>
<section id="game-over-screen" class="game-over-screen">
<div id="game-over-stats">
<img src="" alt="" />
<h2 id="end-message">Game Over</h2>
<p>Score: <span id="final-score">0</span></p>
</div>
<button id="again-button">Play Again</button>
</section>
</main>
</body>
</html>