-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (46 loc) · 1.12 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0>
<style>
body {
padding: 0;
margin: 0;
text-align: center;
height: 100%;
}
html, body {
width: 100%;
}
table {
margin: auto;
}
</style>
<script src="./lib/p5.min.js"></script>
<script src="./lib/p5.dom.min.js"></script>
<script src="./lib/p5.sound.min.js"></script>
<script src="./sketch.js"></script>
<script src="./asteroid.js"></script>
<script src="./player.js"></script>
</head>
<body>
<h1>Asteroid Dodger</h1>
<p>Try to avoid the asteroids! As you progress, there will be more of them!</p>
<div id="canvasContainer"></div>
<table>
<tr>
<th>Score:</th>
<th>Asteroidcount:</th>
</tr>
<tr>
<td id="score"></td>
<td id="asteroidcnt"></td>
</tr>
</table>
<br>
<button onclick="restartGame()"> Restart</button>
<br>
<br>
<small>© Julian Kandlhofer, May 2018</small>
</body>
</html>