-
Notifications
You must be signed in to change notification settings - Fork 2
/
game.html
68 lines (63 loc) · 2.15 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Space Game</title>
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<div class="wrap">
<header>Space Game</header>
<div class="game-wrapper">
<div class="game">
<div class="score">
<img src="Images/chicken.png" />
<span id="score">0</span>
</div>
<div class="lives">
<img src="Images/lives.webp" />
<span id="lives" style="color: red">3</span>
</div>
<div class="mute">
<a href="#"><img id="mute" src="Images/music-chicken.png" /></a>
</div>
<div id="mute_icon">
<a href="#"><img src="Images/mute_chick.webp" /></a>
</div>
<div id="restart" class="congratulations">
<h1>Congratulations!</h1>
<h2 class="score_modal"></h2>
<img src="Images/won-chicken.png" width="300px" height="300px" />
<button class="btn" onclick="window.location.reload()">
Restart
</button>
</div>
<div id="next-level" class="congratulations">
<h1>Congratulations!</h1>
<h2 class="score_modal"></h2>
<img src="Images/won-chicken.png" />
<button id="next" class="btn">Next Level</button>
</div>
<div class="game-over">
<h2>You lost the game</h2>
<img src="Images/chicken-won.gif" />
<h2 class="score_modal"></h2>
<button class="btn" onclick="window.location.reload()">
Restart
</button>
</div>
</div>
</div>
</div>
<script src="js/Config.js"></script>
<script src="js/Game.js"></script>
<script src="js/Helper.js"></script>
<script src="js/Enemy.js"></script>
<script src="js/Laser.js"></script>
<script src="js/Player.js"></script>
<script src="js/Present.js"></script>
<script src="js/modal.js"></script>
<script src="Main.js"></script>
</body>
</html>