-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
69 lines (68 loc) · 2.97 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 http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Space Invaders</title>
<link rel="stylesheet" href="styles.css" />
<!-- strictly used for a confetti animation when user wins game -->
<!-- <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/confetti.browser.min.js"></script> -->
</head>
<body>
<div class="wrap">
<header>
Space Invaders | Lives:
<span id="lives">3</span> | Score: <span id="score">0</span>/<span id="enemy_count">0</span> | Elapsed Time: <span id="min">00</span><span id="sec">00</span>
</header>
<div class="game-wrapper">
<div class="main"></div>
<div class="game-finished">
<p></p>
<!-- <button id="main-menu">Press SPACE to Continue</button> -->
</div>
<div class="menu">
<p>Menu</p>
<div class="button-group">
<button class="btn" onclick="unpauseGame()">Press ESC to Resume</button>
<button class="btn" onclick="restartGame()">Press R to Restart</button>
</div>
</div>
</div>
<div id="tutorial">
<p>SPACE INVADERS</p>
<p class="title">How To Play</p>
<div id="controls">
<p>Arrow Keys to Move</p>
<p>Space - Shoot</p>
<p>ESC - Pause</p>
</div>
<button>Press SPACE to Continue</button>
</div>
<div id="customise">
<p class="title">Customise Your Player</p>
<p class="desc">Before you start, you must select a skin.</p>
<p class="desc2">(Use Arrow Keys)</p>
<div id="player-wrapper">
<div class="player pink">
<img src="img/customisation/spaceship-pink.png" />
</div>
<div class="player yellow">
<img src="img/customisation/spaceship-yellow.png" />
</div>
<div class="player green selected">
<img src="img/customisation/spaceship-green.png" />
</div>
<div class="player blue">
<img src="img/customisation/spaceship-blue.png" />
</div>
<div class="player purple">
<img src="img/customisation/spaceship-purple.png" />
</div>
</div>
<button>Press SPACE to Start Game</button>
</div>
<script src="app.js"></script>
</div>
</body>
</html>