-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (68 loc) · 2.58 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
<!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="styles.css" />
<title>The Original Game</title>
</head>
<body>
<canvas></canvas>
<script src="js\myGame.js"></script>
<script src="js\ship.js"></script>
<script src="js\bullet.js"></script>
<script src="js\shockwave.js"></script>
<script src="js\asteroid.js"></script>
<script src="js\powerUp.js"></script>
<script src="js\explosionBit.js"></script>
<script src="js\utils.js"></script>
<script src="js\spawnFunctions.js"></script>
<script src="js\drawAndUpdate.js"></script>
<script src="js\collisions.js"></script>
<script src="js\handler.js"></script>
<script src="js\controls.js"></script>
<audio
id="firstTheme"
src="audio\Pirates Of The Caribbean Theme Song.mp3"
></audio>
<!--<audio-->
<!--id="secondTheme"-->
<!--src="audio\"-->
<!--></audio>-->
<!--<audio id="thirdTheme" src="audio\"></audio> -->
<audio id="bulletShot" src="audio\BulletShot.mp3"></audio>
<audio id="asteroidExplode" src="audio\AsteroidExplosion.mp3"></audio>
<audio id="spawned" src="audio\FreshlySpawned.mp3"></audio>
<audio id="powerUp" src="audio\Power-Up.mp3"></audio>
<audio id="shockwave" src="audio\Shockwave.mp3"></audio>
<audio id="teleport" src="audio\Teleport.mp3"></audio>
<div class="instructions">
<p>Press the Up arrow key to move forward.</p>
<p>Press the Down arrow key to move backward.</p>
<p>Press the Left arrow key to rotate left.</p>
<p>Press the Right arrow key to rotate right.</p>
<p>Press the Spacebar key to shoot.</p>
<p>Press P to pause or play.</p>
<p>Press R to reset.</p>
<p>
Power-ups (circles containing a question mark) activate on their own
once acquired (except the teleportation power-up).
</p>
<p>
The teleportation power-up gives you an extra teleport that you can
activate using the Ctrl key.
</p>
<p>
The invincibility power-up gives you an invincibility ring that can also
be used to destroy asteroids on contact while increasing your firing
rate.
</p>
<p>Avoid asteroids and shoot them to gain points.</p>
<p>
Moving over the edge of the screen causes you to teleport back into the
viewport through the opposite edge of the screen.
</p>
<p>Respawning upon death grants you a brief period of protection.</p>
</div>
</body>
</html>