-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplay.html
More file actions
71 lines (68 loc) · 2.79 KB
/
play.html
File metadata and controls
71 lines (68 loc) · 2.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/reset.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/main-screen-style.css">
<script src="js/Collider.js" defer></script>
<script src="js/consts.js" defer></script>
<script src="js/Score.js" defer></script>
<script src="js/invader-box.js" defer></script>
<script src="js/Player.js" defer></script>
<script src="js/Bullet.js" defer></script>
<script src="js/Invader.js" defer></script>
<script src="js/play.js" defer></script>
<title>Space Invaders</title>
</head>
<body>
<main>
<div class="game-screen" id="gameScreen">
<section class="score-banner" id="scoreBanner">
<div class="score-container">
<h3 class="score-label">P1</h3>
<p class="score-value" id="currentScoreDisplay">000000</p>
</div>
<div class="score-container">
<h3 class="score-label">Top</h3>
<p class="score-value" id="hiScoreDisplay">000000</p>
</div>
</section>
<div style="display: none;">
<img id="invaderSource" src="assets/sprite-sheet-5px.png" width="115" height="310" alt="">
<img id="playerSource" src="assets/new-ship-4px.png" width="55" height="35" alt="">
</div>
<section id="gameOverScreen" class="game-over-screen hidden">
<h2>GAME OVER</h2>
<form action="index.html" id="initialsForm" name="initialsForm">
<label>Enter Your Initials
<div class="initials-input-container" id="initialsInputContainer">
<input type="text" name="initialOne" id="initialOne" class="input-initial" maxlength="1">
<input type="text" name="initialTwo" id="initialTwo" class="input-initial" maxlength="1">
<input type="text" name="initialThree" id="initialThree" class="input-initial" maxlength="1">
</div>
</label>
<button type="submit" id="submitButton" class="button">Submit</button>
</form>
</section>
</div>
</main>
<footer>
<section class="instructions">
<h2>Controls</h2>
<ul>
<li><kbd>A</kbd> / <kbd><</kbd> - Move Left</li>
<li><kbd>D</kbd> / <kbd>></kbd> - Move Right</li>
<li><kbd>Space</kbd> - Fire Laser</li>
<li><kbd>ESC</kbd> - End game</li>
</ul>
<p>Shoot the invaders to earn points!</p>
<p>If the invaders reach the bottom, the game ends.</p>
</section>
</footer>
</body>
</html>