-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (52 loc) · 1.86 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
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="lib/utils.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/movingObject.js"></script>
<script src="lib/bullet.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/powerup.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/debris.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/ship.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/asteroid.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/game.js" type="text/javascript" charset="utf-8"></script>
<script src="lib/gameView.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="modal-wrapper">
<div class="start-game modal">
<h1>Asteroids!</h1>
<div class="modal-text">
Move: w,a,s,d, arrow keys, mouse<br>
Shoot: [space] or click<br>
</div>
<div class="start button">
Start
</div>
</div>
<div class="game-over modal">
<h1>Game over!</h1>
<div class="modal-text">
Level: <span class="level">0</span><br>
Score: <span class="score">0</span>
</div>
<div class="replay button">
Play again?
</div>
</div>
<div class="pause modal">
<h1>Paused</h1>
<div class="modal-text">
Level: <span class="level">0</span><br>
Score: <span class="score">0</span>
</div>
<div class="resume button">
Resume
</div>
</div>
</div>
<canvas id="canvas" width="800" height="600"></canvas>
<script src="index.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>