diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2014-09-21 08:00:06 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2014-09-21 08:00:06 +0200 |
commit | 373e5f472f829714939103617cfe14e98d981b18 (patch) | |
tree | 4fa9bf8609537bad5b12a7e51915f4a07dee2873 /game/main.js | |
parent | 8c70582bf01821f8a71910013372e3b12f06cdd3 (diff) |
Removed unused states and templating of main.js
Diffstat (limited to 'game/main.js')
-rw-r--r-- | game/main.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/game/main.js b/game/main.js index e67845c..16071ff 100644 --- a/game/main.js +++ b/game/main.js @@ -1,18 +1,11 @@ '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('load', require('./states/load')); game.state.add('play', require('./states/play')); - game.state.add('preload', require('./states/preload')); game.state.start('boot'); |