-
Notifications
You must be signed in to change notification settings - Fork 0
/
space.html
40 lines (38 loc) · 1 KB
/
space.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Space Shooter example</title>
<script type="text/javascript" src="js/phaser.js"></script>
<script src="boot.js"></script>
<script src="preload.js"></script>
<script src="thegame.js"></script>
<script src="gameover.js"></script>
<style type="text/css">
body {
margin: 0;
background: black;
}
#wrapper {
margin: auto;
height: 600px;
width: 800px;
display: block;
}
</style>
</head>
<body>
<div id="wrapper">
</div>
<script type="text/javascript">
(function() {
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'wrapper');
game.state.add("Boot", boot);
game.state.add("Preload", preload);
game.state.add("TheGame", thegame);
game.state.add("GameOver", gameover);
game.state.start("Boot");
})();
</script>
</body>
</html>