-
Notifications
You must be signed in to change notification settings - Fork 1
/
game.html
47 lines (44 loc) · 1.68 KB
/
game.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Asteroid Game | Cosmic Chronicles</title>
<link rel="stylesheet" href="css/game.css">
<link rel="icon" type="image/x-icon" href="./images/space-logo-64-cropped.ico" sizes="32x32" type="image/png">
</head>
<body>
<!-- === INTERFACE === -->
<div id="interface">
<h1>Cosmic Blast</h1>
<p>Welcome to the Cosmic Blast Game! Save the Earth from incoming asteroids by clicking on them.</p>
<p>Instructions:</p>
<ul>
<li>Click on the asteroids to destroy them and increase your score.</li>
<li>Missed asteroids will damage Earth, causing it to slowly fade as its health decreases</li>
<li>If health reaches zero, the game is over.</li>
</ul>
<button id="start-btn" class="start-btn">Start Game</button>
<button class="start-btn"><a href="/">HOME</a></button>
</div>
<!-- === GAME CONTAINER === -->
<div id="game-container">
<button id="quit-btn">✖</button>
<div id="earth"></div>
<div id="health-bar">
<div id="health-text"></div>
</div>
<div id="score"></div>
</div>
<!-- === END SCREEN === -->
<div id="end-screen" class="hidden">
<div class="popup">
<h2>Earth has been destroyed by the asteroids</h2>
<p>Your final score: <span id="final-score"></span></p>
<button id="play-again-btn">Play Again</button>
<button id="home-btn">BACK</button>
</div>
</div>
<script src="js/game.min.js"></script>
</body>
</html>