phaser-gameobj

Instantiate and configure Phaser 4 game objects with physics and lifecycle methods.

17|1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Yakoub-ai/phaser4-gamedev --skill phaser-gameobj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phaser-gameobj
Source: https://github.com/Yakoub-ai/phaser4-gamedev/tree/main/skills/phaser-gameobj
Command: npx skills add https://github.com/Yakoub-ai/phaser4-gamedev --skill phaser-gameobj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill eliminates the need to memorize the extensive Phaser 4 API for object creation, ensuring you choose the correct object type and configuration for your game's visual and physical requirements.

Core Features & Use Cases

  • Object Lifecycle Management: Provides standardized patterns for creating sprites, text, graphics, containers, and particle emitters.
  • Physics & Interaction: Simplifies the implementation of Arcade Physics bodies, interactive click events, and state-based animations.
  • Use Case: Quickly scaffold a player character with a physics body, attach a health bar container, and set up an emitter for movement particles without manually looking up every method signature.

Quick Start

Use the phaser-gameobj skill to create a new physics-enabled sprite for the player character at coordinates 100, 200 using the texture key player-idle.

Frequently Asked Questions about phaser-gameobj

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

FAQPage Schema
How do I create a physics-enabled sprite in Phaser 4?

To create a physics-enabled sprite in Phaser 4, instantiate the object at specific coordinates using a texture key, then attach an Arcade Physics body to enable collisions and interactions. This skill provides standardized patterns for this exact setup.

What's the best way to manage game object lifecycles in Phaser 4?

Managing Phaser 4 game object lifecycles involves using standardized creation patterns for sprites, text, graphics, containers, and particle emitters. This approach ensures correct instantiation and direct access to object properties and lifecycle methods.

Does this skill support adding UI text and graphics to a Phaser scene?

Yes, this skill supports Phaser scene composition by providing configuration patterns for UI text and graphics elements. It ensures adherence to Phaser 4 API standards for placing and rendering these visual components.

Can I scaffold a player character with a health bar container in Phaser?

You can scaffold a player character by instantiating a physics-enabled sprite, then attaching a health bar container using standardized object configuration patterns. This avoids manually looking up every method signature required for setup.

Why use standardized patterns for Phaser 4 game object configuration?

Using standardized patterns for Phaser 4 game object configuration eliminates the need to memorize the extensive API, ensuring you choose the correct object type and properties for your game's visual and physical requirements.