phaser-scene
Installation
SKILL.md
Phaser 4 Scene Creation
Every Phaser 4 game is composed of Scene classes. Each scene is a self-contained unit with its own lifecycle, assets, and game objects.
Scene Class Pattern
The canonical pattern for every scene:
import Phaser from 'phaser';
export class MyScene extends Phaser.Scene {
constructor() {
super({ key: 'MyScene' }); // key MUST be unique across all scenes
}