forked from dwmkerr/spaceinvaders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (48 loc) · 2.06 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
<!DOCTYPE html>
<html>
<head>
<title>Space Invaders</title>
<!-- Add CSS -->
<link rel="stylesheet" type="text/css" href="css/modal.css">
<link rel="stylesheet" type="text/css" href="css/core.css">
<link rel="stylesheet" type="text/css" href="css/typeography.css">
<link rel="stylesheet" type="text/css" href="css/game.css">
</head>
<body>
<div id="starfield"></div>
<div id="gamecontainer">
<canvas id="gameCanvas"></canvas>
</div>
<div id="info">
<p>The invaders get faster and drop more bombs as you complete each level! | Controls: WASD / Arrow Keys + Space / Touch</p>
<p><a id="muteLink" href="#" onclick="toggleMute()">Mute</a> |
<a href="javascript:open(tutorial)">Tutorial</a> |
<a href="https://github.com/dwmkerr/spaceinvaders">Original Project</a> |
<a href="https://github.com/CLSB-Programming/spaceinvaders">GitHub Project</a> |
v1.2</p>
</div>
<!-- Tutorial Modal -->
<div id="tutorialModal" class="modal">
<!-- Content -->
<div class="modal-content">
<!-- Header -->
<div class="modal-header">
<span class="closeBtn">×</span>
<span class="controlsBtn">Controls</span>
<h3>Tutorial</h3>
</div>
<!-- Body -->
<div class="modal-body">
<p>To complete the level you need to destroy all the invaders.</p>
<p>As you progress through the levels, the invaders will get faster and faster.</p>
</div>
</div>
</div>
<!-- Add JS -->
<script src="js/modal.js"></script>
<script src="js/keycodes.js"></script>
<script src="js/starfield.js"></script>
<script src="js/spaceinvaders.js"></script>
<script src="js/setup.js"></script>
</body>
</html>