preload() preload is called first. Normally you'd use this to load your game assets (or those needed for the current State)You
sound : Phaser.SoundManager A reference
scale : Phaser.ScaleManager A reference
add : Phaser.GameObjectFactory
stage : Phaser.Stage A reference to the Stage.
cache : Phaser.Cache A reference to the game cache which
init() init is the very first function called when your State starts up. It's called before preload, create or anything else.If
shutdown() This method will be called when the State is shutdown (i.e. you switch to another state from this one).
physics : Phaser.Physics A reference to the physics
game : Phaser.Game This is a reference to the currently running
Page 2 of 4