-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
29 lines (29 loc) · 1.02 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
<!doctype html>
<html>
<head>
<title></title>
<link href='https://fonts.googleapis.com/css?family=VT323' rel='stylesheet' type='text/css'>
<script src="lib/utils.js"></script>
<script src="lib/movingObject.js"></script>
<script src="lib/asteroid.js"></script>
<script src="lib/audio.js"></script>
<script src="lib/ship.js"></script>
<script src="lib/bullet.js"></script>
<script src="lib/particle.js"></script>
<script src="lib/powerUp.js"></script>
<script src="lib/splashPage.js"></script>
<script src="lib/star.js"></script>
<script src="lib/game.js"></script>
<script src="lib/gameView.js"></script>
<script src="lib/keyListener.js"></script>
</head>
<body>
<canvas id="game-canvas" width="800" height="600"></canvas>
<script type="text/javascript">
var canvas = document.getElementById("game-canvas");
var ctx = canvas.getContext('2d');
var gameView = new Asteroids.GameView(canvas, ctx);
gameView.start();
</script>
</body>
</html>