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

resize() If your game is set to Scalemode RESIZE then each time the browser resizes it will call this function, passing in the new width

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

render() Nearly all display objects in Phaser render automatically, you don't need to tell them to render.However the render method

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

make : Phaser.GameObjectCreator

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

new State() This is a base State class which can be extended if you are creating your own game.It provides quick access to common

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

particles : Phaser.Particles The Particle

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

rnd : Phaser.RandomDataGenerator

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

loadRender() loadRender 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#camera
  • References/Game Development/Phaser/Game States/State

camera : Phaser.Camera A handy reference to World.camera

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

create() create is called once preload has completed, this includes the loading of any assets from the Loader.If you don't have

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

load : Phaser.Loader A reference to the Loader, which

2025-01-10 15:47:30