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
add : Phaser.GameObjectFactory
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).
physics : Phaser.Physics A reference to the physics
cache : Phaser.Cache A reference to the game cache which
stage : Phaser.Stage A reference to the Stage.
init() init is the very first function called when your State starts up. It's called before preload, create or anything else.If
input : Phaser.Input A reference to the Input Manager
Page 2 of 4