phaser

Structure Phaser 3 games with EventBus, GameState, and Constants modules.

307|37|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/PlayableIntelligence/game-creator --skill phaser-playableintelligence
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phaser
Source: https://github.com/PlayableIntelligence/game-creator/tree/main/skills/phaser
Command: npx skills add https://github.com/PlayableIntelligence/game-creator --skill phaser-playableintelligence

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Phaser game development can be fragmented; this Skill provides a standardized, scalable blueprint that unifies scene architecture, state management, and cross-cutting concerns to accelerate production and ensure restart safety.

Core Features & Use Cases

  • Centralized EventBus for decoupled communication across scenes
  • GameState singleton with reset() for clean restarts
  • Data-driven project conventions (Constants.ts, core modules, and a template structure)
  • Optional asset/references/assets directories for extended tooling

Quick Start

Create a starter Phaser 3 project using this skill to jump-start your 2D game development workflow.

Frequently Asked Questions about phaser

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

FAQPage Schema
How do I structure a Phaser 3 game for scalable scene management?

Structure Phaser 3 games using a centralized EventBus singleton for decoupled communication, a GameState module with reset(), and a Constants file for tunables to enable restart-safe workflows across scenes.

What is the best way to manage state and restarts in Phaser 3?

Manage state and restarts in Phaser 3 by implementing a GameState singleton with a reset() method alongside a central EventBus, ensuring clean scene cleanup and preventing stale data on restart.

How does a central EventBus work for cross-scene communication in browser games?

A central EventBus works as a singleton that decouples communication across browser game scenes, allowing components to emit and listen to events without direct references, which supports scalable architecture.

Can I use this architecture for 2D platformers and shooters in Phaser 3?

Yes, this architecture targets developers creating 2D browser games including platformers, shooters, and adventures, providing data-driven patterns and reusable components for these game types.

Why do I need a Constants module for Phaser game development?

A Constants module centralizes all tunable values in Phaser game development, establishing data-driven project conventions that prevent hardcoded values and ensure scalable, maintainable configurations.

What are the limitations of building 2D browser games without an opinionated architecture?

Without an opinionated architecture, Phaser game development becomes fragmented, lacking standardized state management and cross-cutting conventions, which complicates restart safety and slows production.