Add a preloader bar

This commit is contained in:
2014-06-15 21:18:56 -07:00
parent 1034b14671
commit 51b8d2bf4c

View File

@@ -1434,8 +1434,11 @@ Preloader.prototype.create = function()
tween.onComplete.add(goalready, this);
}
console.log("Adding boot");
game.state.add('boot', Boot, false);
console.log("Adding preloader");
game.state.add('preloader', Preloader, false);
console.log("Adding game");
game.state.add('game', GameState, false);
game.state.start('boot');