blob: e67845c2dfd57fda42bfa8223ed6939de099534e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
'use strict';
//global variables
window.onload = function () {
var game = new Phaser.Game(1750, 1100, Phaser.AUTO, 'interactive-pacbot');
var Orientation = require('./plugins/orientation');
game.orientation = new Orientation();
// Game States
game.state.add('boot', require('./states/boot'));
game.state.add('gameover', require('./states/gameover'));
game.state.add('menu', require('./states/menu'));
game.state.add('play', require('./states/play'));
game.state.add('preload', require('./states/preload'));
game.state.start('boot');
};
|