What problem does it solve?
Phaser 4 scene-heavy games often become difficult to manage because developers must correctly coordinate lifecycle phases, state changes, and inter-scene communication without causing bugs or broken transitions.
Core Features & Use Cases
- Scene Lifecycle Mastery: Understand and implement init, preload, create, and update flows (including what changes across PENDING, RUNNING, PAUSED, SLEEPING, SHUTDOWN, and DESTROYED).
- Scene Orchestration: Start, restart, switch, pause, sleep, wake, stop, and transition scenes reliably using the SceneManager-driven queue behavior.
- Data and Event Communication: Pass initialization data through start/launch/switch/etc., share state via the global registry, and communicate decoupled UI/game logic via scene event emitters.
Quick Start
Use the scenes skill to design a minimal Phaser 4 Scene class that implements init, preload, create, and update, then uses this.scene.start('NextScene', { level: 2 }) to transition with data.