-
Notifications
You must be signed in to change notification settings - Fork 83
/
index.html
28 lines (28 loc) · 758 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Monster Wants Candy demo</title>
<style> body { margin: 0; background: #B4D9E7; } </style>
<script src="src/phaser-2.0.7.min.js"></script>
<script src="src/Boot.js"></script>
<script src="src/Preloader.js"></script>
<script src="src/MainMenu.js"></script>
<script src="src/Game.js"></script>
</head>
<body>
<script>
(function() {
// initialize the framework
var game = new Phaser.Game(640, 960, Phaser.AUTO, 'game');
// add game states
game.state.add('Boot', Candy.Boot);
game.state.add('Preloader', Candy.Preloader);
game.state.add('MainMenu', Candy.MainMenu);
game.state.add('Game', Candy.Game);
// start the Boot state
game.state.start('Boot');
})();
</script>
</body>
</html>