-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
61 lines (51 loc) · 1.22 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Asteroids</title>
<style></style>
</head>
<style>
body, html {
height: 100%;
margin: 0;
}
.bg {
/* The image used */
background-image: url("space02.jpeg");
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
.canvas {
padding: 0;
margin: auto;
display: block;
width: 700px;
height: 500px;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
<body>
<div class="bg">
<div class="canvas">
<canvas id="gameCanvas" width="700" height="500" style="border:3px solid #d6d6d6;"></canvas>
</div>
</div>
<script src="config.js"></script>
<script src="music.js"></script>
<script src="sound.js"></script>
<script src="bonus.js"></script>
<script src="laser.js"></script>
<script src="ship.js"></script>
<script src="asteroid.js"></script>
<script src="game.js"></script>
</body>
</html>