Phaser 2d game

From fanfan-de/anybox · View interactive version

Phaser 2d game is an AI agent skill from the GitHub repository fanfan-de/anybox. Implement 2D browser games with Phaser. Use when the user wants a Phaser, TypeScript, and Vite stack for scenes, gameplay systems, cameras, sprite animation, and DOM-overlay HUD patterns.

How to use this skill

Skill file

Phaser 2D Game

Overview

Use this skill for the main execution path in this plugin. Phaser is the default stack for 2D browser games here because it handles rendering, timing, sprites, cameras, and scene orchestration well without forcing gameplay rules into the framework.

Preferred stack:

Architecture

  1. Keep gameplay state outside Phaser scenes.
  1. Make scenes thin.
  1. Keep renderer-facing objects disposable.
  1. Favor stable asset manifest keys over direct file-path references throughout gameplay code.

Implementation Guidance

2D Modes Covered Well

Camera and Presentation

UI Integration

Asset Organization

Keep manifest keys human-readable and stable.

Default Directory Shape

See ../../references/phaser-architecture.md for a concrete module split.

Anti-Patterns

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.