scenes

Orchestrate Phaser 4 scene lifecycles, transitions, and SceneManager interactions.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill scenes-raphe-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scenes
Source: https://github.com/Raphe-dev/phaser-cozy-mmo/tree/main/skills/scenes
Command: npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill scenes-raphe-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Phaser projects can become unwieldy as scenes multiply and interact; this skill provides a comprehensive guide to organizing, managing, and orchestrating Phaser 4 scenes, including lifecycle, transitions, sleeping, waking, and cross-scene communication via the SceneManager and events.

Core Features & Use Cases

  • Understand and implement the full Scene lifecycle (init, preload, create, update) and how SceneManager coordinates transitions.
  • Coordinate multiple scenes in parallel, switch between active and sleeping states, and pass data across scenes.
  • Use cases include composing gameplay with a main scene, a pause/menu overlay, and loading or background scenes that initialize assets.

Quick Start

Create a minimal Phaser.Scene subclass and register it in a Phaser.Game config to see the lifecycle in action.

Frequently Asked Questions about scenes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Phaser scene transitions and lifecycle methods in a multi-scene game?

Phaser scene transitions and lifecycle methods are managed through the SceneManager, which coordinates the init, preload, create, and update phases to simplify complex multi-scene game architecture and switching.

How do I pass data between parallel scenes in Phaser 4?

You pass data between parallel Phaser 4 scenes by utilizing SceneManager interactions and event systems, allowing active and sleeping scenes to communicate and share initialization data during transitions.

What is the difference between sleeping and pausing a scene in Phaser?

Sleeping and pausing a scene in Phaser alters its active state; sleeping pauses the update loop while preserving the scene's display list, whereas pausing halts processing, managed via the SceneManager's state controls.

Can I run multiple Phaser scenes in parallel for UI overlays and gameplay?

Yes, you can run multiple Phaser scenes in parallel by configuring the SceneManager to simultaneously render a main gameplay scene alongside active overlay scenes like pause menus or background asset loaders.

How do I set up a minimal Phaser scene to see the lifecycle in action?

To see the Phaser scene lifecycle in action, create a minimal Phaser.Scene subclass and register it within your Phaser.Game config, triggering the sequential init, preload, create, and update methods.

When should I use parallel scene management instead of single scene containers in Phaser?

Use parallel scene management instead of a single scene container when composing complex gameplay that requires independent rendering loops, such as separating a background loading scene from a main menu overlay.