-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
37 lines (34 loc) · 1.2 KB
/
index.html
File metadata and controls
37 lines (34 loc) · 1.2 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
<title>Space Invaders Game</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="game-container">
<div id="board"></div>
<button id="start-button">Start</button>
<div id="score">Score: 0</div>
<div id="playerLife">Life: 3</div>
</div>
<audio id="shootMusic">
<source src="assets/img/shoot.mp3" type="audio/mp3">
Your browser does not support the audio element.
</audio>
<audio id="InvaderkilledMusic">
<source src="assets/img/Invaderkilled.mp3" type="audio/mp3">
Your browser does not support the audio element.
</audio>
<audio id="background-music" loop>
<source src="assets/img/music.mp3" type="audio/mp3">
Your browser does not support the audio element.
</audio>
<script src="game.js"></script>
<script src="player.js"></script>
<script src="bullet.js"></script>
<script src="enemy.js"></script>
</body>
</html>