-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex_bak.html
46 lines (38 loc) · 1.16 KB
/
index_bak.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>FruitConga!</title>
<script src="js/phaser.min.js"></script>
<script src="src/Boot.js"></script>
<script src="src/Preloader.js"></script>
<script src="src/Credits.js"></script>
<script src="src/MainMenu.js"></script>
<script src="src/Game.js"></script>
<script src="src/Levels.js"></script>
<style>
body {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<script type="text/javascript">
window.onload = function() {
// 100% of the browser window - see Boot.js for additional configuration
game = new Phaser.Game("100%", "100%", Phaser.AUTO, '');
// Add the States your game has.
// You don't have to do this in the html, it could be done in your Boot state too, but for simplicity I'll keep it here.
game.state.add('Boot', BasicGame.Boot);
game.state.add('Preloader', BasicGame.Preloader);
game.state.add('MainMenu', BasicGame.MainMenu);
game.state.add('Game', BasicGame.Game);
game.state.add('Credits', BasicGame.Credits);
game.state.add('Levels', BasicGame.Levels);
// Now start the Boot state.
game.state.start('Boot');
};
</script>
</body>
</html>