phaser-gamedev
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "phaser-gamedev" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-81fec1603b874f29a93d2d3b9af9097d96d5c7c08cb47e7be9ef1c6515d0bc00. Verify the upstream source and version against https://github.com/chongdashu/vibejam-starter-pack before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Instructions for building 2D browser games with Phaser 3 (JS/TS). Covers scenes, sprites, physics systems (Arcade/Matter), tilemaps (Tiled), animations, and input controls. Trigger phrases include “Phaser scene”, “Arcade physics”, “tilemap”, “Phaser 3 game”.
Introduction source: third_party · chongdashu · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Build 2D browser games with Phaser 3 (JS/TS): scenes, sprites, physics (Arcade/Matter), tilemaps (Tiled), animations, input. Trigger: 'Phaser scene', 'Arcade physics', 'tilemap', 'Phaser 3 game'.
- Testing
- Not tested
Browse files
Frontmatter
name: phaser-gamedev
description: "Build 2D browser games with Phaser 3 (JS/TS): scenes, sprites, physics (Arcade/Matter), tilemaps (Tiled), animations, input. Trigger: 'Phaser scene', 'Arcade physics', 'tilemap', 'Phaser 3 game'."Phaser Game Development
Build 2D browser games using Phaser 3's scene-based architecture and physics systems.
STOP: Before Loading Any Spritesheet
Read spritesheets-nineslice.md FIRST.
Spritesheet loading is fragile—a few pixels off causes silent corruption that compounds into broken visuals. The reference file contains the mandatory inspection protocol.
Quick rules (details in reference):
- Measure the asset before writing loader code—never guess frame dimensions
- Character sprites use SQUARE frames: If you calculate frameWidth=56, try 56 for height first
- Different animations have different frame sizes: A run cycle needs wider frames than idle; an attack needs extra width for weapon swing. Measure EACH spritesheet independently
- Check for spacing: Gaps between frames require
spacing: Nin loader config - Verify the math:
imageWidth = (frameWidth × cols) + (spacing × (cols - 1))
Reference Files
Read these BEFORE working on the relevant feature:
| When working on... | Read first |
|---|---|
| Loading ANY spritesheet | spritesheets-nineslice.md |
| Nine-slice UI panels | spritesheets-nineslice.md |
| Config, scenes, objects, input, animations | core-patterns.md |
| Tiled tilemaps, collision layers | tilemaps.md |
| Physics tuning, groups, pooling | arcade-physics.md |
| Performance issues, object pooling | performance.md |
Architecture Decisions (Make Early)
Before building, decide:
- What scenes does this game need? (Boot, Menu, Game, UI overlay, GameOver)
- What are the core entities and how do they interact?
- What physics model fits? (Arcade for speed, Matter for realism, None for menus)
- What input methods? (keyboard/gamepad/touch)
Physics System Choice
| System | Use When |
|---|---|
| Arcade | Platformers, shooters, most 2D games. Fast AABB collisions |
| Matter | Physics puzzles, ragdolls, realistic collisions. Slower, more accurate |
| None | Menu scenes, visual novels, card games |
Core Principles
- Scene-first architecture: Organize code around scene lifecycle and transitions
- Composition over inheritance: Build entities from sprite/body/controllers, not deep class trees
- Physics-aware design: Choose collision model early; don't retrofit physics late
- Asset pipeline discipline: Preload everything; reference by keys; keep loading deterministic
- Frame-rate independence: Use
deltafor motion and timers; avoid frame counting
Anti-Patterns
| Anti-Pattern | Problem | Solution |
|---|---|---|
Global state on window |
Scene transitions break state | Use scene data, registries |
Loading in create() |
Assets not ready when referenced | Load in preload(), use Boot scene |
| Frame counting | Game speed varies with FPS | Use delta / 1000 |
| Matter for simple collisions | Unnecessary complexity | Arcade handles most 2D games |
| One giant scene | Hard to extend | Separate gameplay/UI/menus |
| Magic numbers | Impossible to balance | Config objects, constants |
| No object pooling | GC stutters | Groups with setActive(false) |
Variation Guidance
Outputs should vary based on:
- Genre (platformer vs top-down vs shmup)
- Target platform (mobile touch, desktop keyboard, gamepad)
- Art style (pixel art scaling vs HD smoothing)
- Performance envelope (many sprites → pooling; few sprites → simpler code)
Remember
Phaser provides powerful primitives—scenes, sprites, physics, input—but architecture is your responsibility.
Think in systems: define the scenes, define the entities, define their interactions—then implement.
Codex can build complete, polished Phaser games. These guidelines illuminate the path—they don't fence it.
Version history
-
v1.2.1
GitHub ↗
Original release notes
## [1.2.1] - 2026-04-12 ### Added - CHANGELOG.md - Phaser 4 game dev agent skill (`phaser4-gamedev`) — WebGL-first renderer, filters, lighting, shaders, SpriteGPULayer, TilemapGPULayer, and Phaser 3 → 4 migration guidance - "How I'm Vibe Coding A Game For the Vibe Jam" tutorial video
-
v1.1.0
GitHub ↗
Original release notes
Updated starter pack with .agents layout, improved README/START-HERE guidance, and refreshed release zip.
-
v1.0.0
GitHub ↗
Original release notes
Free Vibe Jam starter pack — battle-tested ThreeJS and Phaser agent skills, starter projects, and prompts.
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档未明确说明何时使用此 Skill,用户难以快速判断适用场景。
Recommendation: 在文档开头添加 When to Use 章节,说明适合 Phaser 3 游戏开发的场景。
Highlights
- 提供 Phaser 3 游戏开发的系统性指导,涵盖场景、物理、瓦片地图等核心模块
- 强调架构决策和最佳实践,帮助用户避免常见陷阱
Areas to improve
-
触发词覆盖不全 Reported severity: Minor
缺少部分常见变体,如 'Phaser3'、'Tiled map',可能导致漏触。
Recommendation: 补充常见拼写变体和同义词,提高触发覆盖率。
Highlights
- 触发词覆盖了 Phaser 3 开发的主要场景,边界清晰
Areas to improve
-
缺少端到端示例 Reported severity: Minor
文档缺乏完整的游戏开发示例,用户难以理解如何组合各模块。
Recommendation: 添加一个简单的端到端示例,展示从场景创建到游戏运行的全流程。
-
缺少 When to Use 章节 Reported severity: Minor
文档未明确说明何时使用此 Skill,用户难以快速判断适用场景。
Recommendation: 在文档开头添加 When to Use 章节,说明适合 Phaser 3 游戏开发的场景。
Highlights
- 文档结构清晰,分 STOP、Reference Files、Architecture Decisions、Core Principles、Anti-Patterns、Variation Guidance、Remember 等章节,逻辑完整
Areas to improve
-
工具来源不明 Reported severity: Minor
未明确说明 Phaser 3 的具体版本要求或 CDN 链接,用户可能使用不兼容版本。
Recommendation: 在文档开头添加 Phaser 3 的版本要求和官方 CDN 链接。
Highlights
- 强调资产加载规范、物理系统选择、性能优化等,具备良好可靠性指导
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.