Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
openai avatar

Phaser 2d Game

  • 8 installs
  • 4.9k repo stars
  • Updated July 14, 2026
  • openai/plugins

phaser-2d-game skill documents Implement 2D browser games with Phaser.

About

phaser-2d-game skill documents 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.. name: phaser-2d-game description: 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.

  • Implement 2D browser games with Phaser.
  • Platform-specific setup patterns for phaser-2d-game.
  • Evidence-backed steps from upstream SKILL.md.
  • When-to-use criteria for phaser-2d-game versus alternatives.

Phaser 2d Game by the numbers

  • 8 all-time installs (skills.sh)
  • +1 installs in the week ending Jul 9, 2026 (Skillselion tracking)
  • Ranked #200 of 247 Game Development skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
At a glance

phaser-2d-game capabilities & compatibility

Capabilities
phaser 2d game quick start · phaser 2d game when to use guidance · phaser 2d game integration patterns
Use cases
frontend
From the docs

What phaser-2d-game says it does

DOM-based HUD or menus layered over the game canvas
SKILL.md
1. Keep gameplay state outside Phaser scenes.
SKILL.md
npx skills add https://github.com/openai/plugins --skill phaser-2d-game

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs8
repo stars4.9k
Last updatedJuly 14, 2026
Repositoryopenai/plugins

How do I use phaser-2d-game correctly?

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.

Who is it for?

Teams implementing phaser-2d-game workflows from the catalog.

Skip if: Skip when requirements clearly match a different specialized stack.

When should I use this skill?

User asks about phaser-2d-game, implement 2d browser games with phaser. use when the user wants a phaser, typescript, and .

What you get

Working phaser-2d-game setup with validated configuration and next steps.

Files

SKILL.mdMarkdownGitHub ↗

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:

  • Phaser
  • TypeScript
  • Vite
  • DOM-based HUD or menus layered over the game canvas

Architecture

1. Keep gameplay state outside Phaser scenes.

  • Systems own rules, turn order, movement, combat, inventory, objectives, and progression.
  • Phaser scenes adapt system state into sprites, camera motion, animation playback, and effects.

2. Make scenes thin.

  • Boot and asset preload
  • Menu or shell scene
  • Gameplay scene
  • Optional overlay or debug scene

3. Keep renderer-facing objects disposable.

  • Sprite containers, emitters, tweens, and camera rigs are view state, not source of truth.

4. Favor stable asset manifest keys over direct file-path references throughout gameplay code.

Implementation Guidance

  • Use one integration boundary where the scene reads simulation state and emits input actions back.
  • Prefer deterministic system updates over scene-local mutation.
  • Treat HUD and menus as DOM when text, status density, or responsiveness matter.
  • Keep animation state derived from gameplay state rather than ad hoc sprite flags.

2D Modes Covered Well

  • Turn-based grids and tactics
  • Top-down exploration
  • Side-view action platformers
  • Character-action combat with sprite animation
  • Lightweight management or deck-driven battle scenes

Camera and Presentation

  • Choose the camera model early: locked, follow, room-based, or tactical-pan.
  • Keep camera logic separate from game rules.
  • Use restrained screen shake, hit-stop, and parallax. Effects should improve readability, not obscure it.

UI Integration

  • Use DOM overlays for HUD, command menus, settings, and narrative panels.
  • Keep the canvas responsible for the world, combat readability, and motion.
  • Avoid shoving dense text or complex settings UIs into Phaser unless the project explicitly needs an in-canvas presentation.

Asset Organization

  • characters/
  • environment/
  • ui/
  • fx/
  • audio/
  • data/

Keep manifest keys human-readable and stable.

Default Directory Shape

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

Anti-Patterns

  • Game rules inside update() loops without a system boundary
  • Scene-to-scene state passed through mutable global objects
  • HUD text rendered in the game canvas just because it is convenient
  • Asset paths embedded everywhere instead of a manifest layer
  • Overusing generic React dashboard patterns for game UI

References

  • Shared architecture: ../web-game-foundations/SKILL.md
  • Frontend direction: ../game-ui-frontend/SKILL.md
  • Sprite workflow: ../sprite-pipeline/SKILL.md
  • Phaser structure: ../../references/phaser-architecture.md

Related skills

FAQ

What does phaser-2d-game do?

phaser-2d-game skill documents Implement 2D browser games with Phaser.

When should I use phaser-2d-game?

User asks about phaser-2d-game, implement 2d browser games with phaser. use when the user wants a phaser, typescript, and .

Is this skill safe to install?

Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.