You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a very short review of the state class of Phaser. You can find an example in this repository in the following folder: tutorial-examples/spriteClass/scripts/GameState.ts.
Basically this class is easy to understand. Each game has different states, e.g. main menu, game, pause menu, etc. It is important to know at which point which functions are called within the state.
You will find all the details about the states and when which actions should be carried out in the GameState.ts file or on the official Phaser website.