scenes

Manage Phaser multi-scene lifecycles, transitions, and cross-scene communication.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/jallard-007/jallard-ca-server --skill scenes-jallard-007
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scenes
Source: https://github.com/jallard-007/jallard-ca-server/tree/main/.github/skills/scenes
Command: npx skills add https://github.com/jallard-007/jallard-ca-server --skill scenes-jallard-007

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Scenes are the organizational backbone of a Phaser game. Each Scene has its own lifecycle (init, preload, create, update), its own set of injected systems such as add, input, cameras, etc., and can be started, stopped, paused, slept, or run in parallel with other Scenes. The ScenePlugin, exposed as this.scene, controls all multi-scene orchestration.

Core Features & Use Cases

  • Scene lifecycle management (init, preload, create, update) and lifecycle events
  • Scene switching, transitions, and parallel scene execution
  • Cross-scene data passing and event-based communication
  • Injection of global and scene-specific properties to streamline development
  • Use Case: coordinate a gameplay scene with a UI scene and a loading screen for smooth startup.

Quick Start

Create a minimal Phaser.Scene class and register it in your game's scene array to observe the lifecycle from init through update.

Frequently Asked Questions about scenes

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

FAQPage Schema
How do I manage multiple scenes in Phaser for orderly game startup?

Multi-scene management in Phaser is handled by using the SceneManager and ScenePlugin to control scene lifecycle, startup order, and parallel execution. You can coordinate scenes like loading screens, gameplay, and UI to run together for smooth game initialization.

How does cross-scene communication work in Phaser game development?

Cross-scene communication in Phaser uses event-based systems and data passing through the ScenePlugin. Scenes can share data during initialization and emit events to each other, enabling coordinated behavior between parallel scenes like a gameplay scene and an overlay UI scene.

What is the Phaser scene lifecycle and how do I use it?

The Phaser scene lifecycle consists of init, preload, create, and update phases. You structure your game logic by registering a Phaser.Scene class and organizing asset loading, object creation, and frame updates across these distinct lifecycle events.

Can I run multiple Phaser scenes in parallel with different rendering orders?

Yes, Phaser allows multiple scenes to run in parallel with controlled rendering order. The SceneManager handles launching scenes simultaneously, enabling you to layer a UI scene over a gameplay scene while both maintain their own lifecycle and injected systems.

Why do I need scene management for my Phaser game?

Scene management is required to organize complex Phaser games with multiple scenes needing orderly startup, data passing, and cross-scene communication. It prevents initialization conflicts by structuring the lifecycle and controlling the rendering order of overlapping scenes.

Does Phaser scene management support injecting global properties across scenes?

Yes, Phaser scene management supports the injection of global and scene-specific properties to streamline development. This allows you to share configurations and systems across multiple scenes while maintaining the isolated lifecycle of each individual scene.