phaser-gamedev

Develop 2D games with Phaser 3 architecture, scenes, physics, and scaling.

2|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/pmarashian/cursor-agent-skills --skill phaser-gamedev-pmarashian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phaser-gamedev
Source: https://github.com/pmarashian/cursor-agent-skills/tree/main/phaser-gamedev
Command: npx skills add https://github.com/pmarashian/cursor-agent-skills --skill phaser-gamedev-pmarashian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance and best practices for developing 2D games using the Phaser 3 framework, covering core concepts from setup to advanced patterns.

Core Features & Use Cases

  • Game Architecture: Structure your game with scenes, manage game configuration, and implement frame-rate independent movement.
  • Physics & Collision: Utilize Arcade Physics for dynamic and static bodies, manage collisions, and implement object pooling.
  • UI & Scaling: Handle viewport scaling correctly using Phaser's Scale Manager and avoid common anti-patterns.
  • Use Case: You need to create a new 2D platformer game and are unsure about the best way to set up scenes, handle player movement with physics, and ensure the game scales correctly across different screen sizes.

Quick Start

Configure the Phaser game object with appropriate scaling modes and physics settings.

Frequently Asked Questions about phaser-gamedev

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

FAQPage Schema
How do I structure a 2D game in Phaser 3 using scene management?

Phaser scene management organizes 2D game states by separating logic into distinct scenes, configuring the game object with appropriate scaling modes, and implementing frame-rate independent movement for robust architecture.

How do I handle collisions and physics with dynamic and static bodies in Phaser?

Handle collisions in Phaser by utilizing Arcade Physics to manage dynamic and static bodies, detecting overlaps, and implementing object pooling to efficiently reuse game objects and optimize performance.

What is the best way to scale a Phaser game across different screen sizes?

The best way to scale a Phaser game across different screen sizes is using Phaser's Scale Manager, which handles viewport scaling correctly and helps avoid common UI anti-patterns for responsive design.

Can I use TypeScript for Phaser 3 game development?

Yes, you can use TypeScript for Phaser 3 game development to build complex 2D game experiences efficiently, leveraging strong typing for sprite handling, input management, and asset loading.

What are common anti-patterns and pitfalls when developing 2D games with Phaser?

Common anti-patterns in 2D game development with Phaser include improper viewport scaling and inefficient asset loading; addressing these pitfalls and promoting best practices ensures robust performance optimization.