add : Phaser.GameObjectFactory
onUpdateCallback : Function This is called when the state is updated, every game loop. It doesn't happen during preload (@see
start(key, clearWorld, clearCache, parameter) Start the given State. If
current : string The current active State object. Source code:
scale : Phaser.ScaleManager A reference
shutdown() This method will be called when the State is shutdown (i.e. you switch to another state from this one).
new StateManager(game, pendingState) The State Manager is responsible for loading, setting up and switching
add(key, state, autoStart) Adds a new State into the StateManager. You must give each State a unique key
onCreateCallback : Function This is called when the state preload has finished and creation begins.
physics : Phaser.Physics A reference to the physics
Page 3 of 6