init() init is the very first function called when your State starts up. It's called before preload, create or anything else.If
new StateManager(game, pendingState) The State Manager is responsible for loading, setting up and switching
physics : Phaser.Physics A reference to the physics
onCreateCallback : Function This is called when the state preload has finished and creation begins.
shutdown() This method will be called when the State is shutdown (i.e. you switch to another state from this one).
stage : Phaser.Stage A reference to the Stage.
onPausedCallback : Function This is called when the game is paused. Source
onPreloadCallback : Function This is called when the state starts to load assets. Source
loadUpdate() loadUpdate is called during the Loader process. This only happens if you've set one or more assets to load in the preload
input : Phaser.Input A reference to the Input Manager
Page 4 of 6