summaryrefslogtreecommitdiff
path: root/game/main.js
blob: a44c949ae1c16b9eb9afba1e9df1afdc4d5e1c83 (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(1100, 950, 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');
};