sprites-and-images

Create and manipulate Phaser 4 Sprites and Images with factory methods.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/arnaudruffin/dvx-phaser-game --skill sprites-and-images-arnaudruffin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sprites-and-images
Source: https://github.com/arnaudruffin/dvx-phaser-game/tree/main/.agents/skills/sprites-and-images
Command: npx skills add https://github.com/arnaudruffin/dvx-phaser-game --skill sprites-and-images-arnaudruffin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Creating and manipulating Sprites and Images in Phaser 4 often requires boilerplate code and multiple mixing techniques; this skill consolidates factory methods, texture/frame handling, and common visual operations into a cohesive workflow.

Core Features & Use Cases

  • Simplified creation of Sprites and Images using this.add.sprite and this.add.image with consistent initialization
  • Unified control over texture, frame, position, origin, depth, tint, flip, and alpha via the component mixin system
  • Use Case: Build reusable character visuals that switch textures or frames across scenes without rewriting object setup

Quick Start

Create a Sprite in a Scene using this.add.sprite and adjust its texture, position, and visual properties in a single step.

Frequently Asked Questions about sprites-and-images

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

FAQPage Schema
How do I create and manipulate Sprites and Images in Phaser 4?

To create Sprites and Images in Phaser 4, use factory methods like this.add.sprite and this.add.image for consistent initialization, then manipulate visual properties through the component mixin system for streamlined game object workflows.

What components control visual properties for Phaser game objects?

Phaser game objects use the Transform, Tint, Alpha, Origin, Depth, and Texture/Frame components to power visual control, allowing unified management of position, appearance, and layering across scenes.

When do I need texture and frame management for Phaser Sprites?

Texture and frame management is needed when building reusable character visuals that switch textures or frames across scenes without rewriting object setup, ensuring consistent initialization and component-based behaviors.

How do I build reusable character visuals that switch textures across scenes in Phaser?

Build reusable character visuals by using this.add.sprite with the Texture and Frame components to switch textures across scenes, leveraging the component mixin system to maintain origin, depth, and tint without rewriting setup code.

Does this approach work with component-based behaviors across multiple Phaser scenes?

Yes, the approach works across multiple Phaser scenes by using the unified component mixin system to apply consistent Transform, Tint, Alpha, and Depth behaviors to Sprites and Images throughout your game.

What is the best way to streamline boilerplate code when setting up Phaser 4 game objects?

The best way to streamline boilerplate is consolidating factory methods like this.add.sprite and this.add.image with unified texture, frame, and visual operations into a cohesive workflow, eliminating repetitive object setup code.