-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
44 lines (40 loc) · 1.45 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
<!DOCTYPE HTML>
<title>Renegade</title>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script src="scripts/phaser.min.js"></script>
<script src="scripts/graphics.js"></script>
<script src="scripts/bullet.js"></script>
<script src="scripts/ship.js"></script>
<script src="scripts/player.js"></script>
<script src="scripts/roid.js"></script>
<script src="scripts/gauge.js"></script>
<script src="scripts/main.js"></script>
<script src="scripts/menu.js"></script>
<script src="scripts/preload.js"></script>
<script src="scripts/boot.js"></script>
<style type="text/css">
body{
margin: 0;
padding: 0;
background-color: #232231;
}
</style>
</head>
<body>
<div id="gameContainer"></div>
<script type="text/javascript">
window.onload = function() {
var game = new Phaser.Game(SCREEN_WIDTH, SCREEN_HEIGHT, Phaser.AUTO,
'gameContainer', null, false,
false);
game.state.add('boot', BasicGame.Boot);
game.state.add('preload', BasicGame.Preload);
game.state.add('menu', MenuState);
game.state.add('game', GameState);
game.state.start('boot');
};
</script>
</body>
</html>