scenes

Manage Phaser 4 scene lifecycles, transitions, and parallel orchestration.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Dominik-Steinweg/Fragdachse --skill scenes-dominik-steinweg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scenes
Source: https://github.com/Dominik-Steinweg/Fragdachse/tree/main/.agents/skills/scenes
Command: npx skills add https://github.com/Dominik-Steinweg/Fragdachse --skill scenes-dominik-steinweg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill resolves the complexity of managing game state, transitions, and parallel scene execution in Phaser 4, preventing common issues like stale references, improper lifecycle sequencing, and memory leaks.

Core Features & Use Cases

  • Lifecycle Management: Provides precise control over scene initialization, preloading, creation, and update loops.
  • Orchestration: Simplifies complex scene transitions, parallel scene launching, and data passing between game states.
  • Use Case: Use this skill to implement a robust UI overlay that persists across multiple game levels while maintaining independent state and input handling.

Quick Start

Use the scenes skill to transition from the current game scene to the main menu scene while passing the final score as data.

Frequently Asked Questions about scenes

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

FAQPage Schema
How do I manage Phaser 4 scene lifecycles and state transitions?

Manage Phaser 4 scene lifecycles by controlling initialization, preloading, creation, and update loops. This ensures proper execution of lifecycle methods and prevents stale references during state transitions.

How do I pass data between game states during scene transitions in Phaser?

Pass data between game states during scene transitions by utilizing event-driven communication and the SceneManager. This facilitates passing parameters like final scores directly into newly launched scene instances.

Can I launch parallel scenes in Phaser 4 for UI overlays?

Yes, you can launch parallel scenes in Phaser 4 to implement robust UI overlays. Parallel scene orchestration allows overlays to persist across multiple game levels while maintaining independent state and input handling.

What causes memory leaks and stale references in Phaser game development?

Memory leaks and stale references in Phaser game development are caused by improper lifecycle sequencing during scene management. Properly handling scene initialization and system-level management prevents these common architectural issues.

Does this scene orchestration approach work with the Phaser ScenePlugin?

Yes, this scene orchestration approach works directly with the Phaser ScenePlugin and SceneManager. It ensures proper system-level scene management and event-driven communication between active game states.