State#init()
  • References/Game Development/Phaser/Game States/State

init() init is the very first function called when your State starts up. It's called before preload, create or anything else.If

2025-01-10 15:47:30
StateManager#StateManager
  • References/Game Development/Phaser/Game States/StateManager

new StateManager(game, pendingState) The State Manager is responsible for loading, setting up and switching

2025-01-10 15:47:30
State#physics
  • References/Game Development/Phaser/Game States/State

physics : Phaser.Physics A reference to the physics

2025-01-10 15:47:30
StateManager#onCreateCallback
  • References/Game Development/Phaser/Game States/StateManager

onCreateCallback : Function This is called when the state preload has finished and creation begins.

2025-01-10 15:47:30
State#shutdown()
  • References/Game Development/Phaser/Game States/State

shutdown() This method will be called when the State is shutdown (i.e. you switch to another state from this one).

2025-01-10 15:47:30
State#stage
  • References/Game Development/Phaser/Game States/State

stage : Phaser.Stage A reference to the Stage.

2025-01-10 15:47:30
StateManager#onPausedCallback
  • References/Game Development/Phaser/Game States/StateManager

onPausedCallback : Function This is called when the game is paused. Source

2025-01-10 15:47:30
StateManager#onPreloadCallback
  • References/Game Development/Phaser/Game States/StateManager

onPreloadCallback : Function This is called when the state starts to load assets. Source

2025-01-10 15:47:30
State#loadUpdate()
  • References/Game Development/Phaser/Game States/State

loadUpdate() loadUpdate is called during the Loader process. This only happens if you've set one or more assets to load in the preload

2025-01-10 15:47:30
State#input
  • References/Game Development/Phaser/Game States/State

input : Phaser.Input A reference to the Input Manager

2025-01-10 15:47:30