Sprites And Images
Covers Phaser 4 Sprite and Image creation, texture and frame selection, and common visual operations on each.
- CCM score
- 71 of 100
- skills.sh installs
- 1.5K
- GitHub stars
- 40.8K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers factory methods, texture and frame selection, position, scale, rotation, tint, flip, alpha, origin, and depth
- Explains the shared component mixin system behind both classes, with
src/gameobjects/components/index.jsas the reference - Compares Image and Sprite, noting that Image skips per-frame
preUpdateand only Sprite supports animation methods - Designed for Phaser 4 developers choosing between Image and Sprite and wiring visual state in a Scene's
create()method
Install
$ npx -y skills add phaserjs/phaser --skill sprites-and-images -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Sprites and Images
Creating and manipulating Sprite and Image game objects in Phaser 4 -- factory methods, texture/frame selection, the component mixin system, and common visual operations (position, scale, rotation, tint, flip, alpha, origin, depth).
Key source paths: src/gameobjects/sprite/, src/gameobjects/image/, src/gameobjects/GameObject.js, src/gameobjects/components/
Related skills: ../loading-assets/SKILL.md, ../animations/SKILL.md, ../physics-arcade/SKILL.md, ../game-object-components/SKILL.md
Quick Start
// In a Scene's create() method:
// Static image (no animation support, slightly cheaper)
const bg = this.add.image(400, 300, 'background');
// Sprite (supports animations)
const player = this.add.sprite(100, 200, 'player', 'idle-0');
// Common operations -- all methods return `this` for chaining
player.setPosition(200, 300);
player.setScale(2);
player.setAngle(45);
player.setTint(0xff0000);
player.setAlpha(0.8);
player.setOrigin(0, 1); // bottom-left
player.setDepth(10);
player.setFlip(true, false); // flip horizontally
player.setVisible(false);
Details
- Repository
- github.com/phaserjs/phaser
- Categories
- Game Development, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the sprites-and-images skill do in Phaser 4?
The sprites-and-images skill guides agents through creating Sprite and Image game objects in Phaser 4. It covers factory methods, texture and frame selection, position, scale, rotation, tint, flip, alpha, origin, depth and the component mixin system.
How do I install the sprites-and-images skill?
Run npx -y skills add phaserjs/phaser --skill sprites-and-images -y in a project to install it. After that, the agent can create and manipulate sprites and images in Phaser 4 scenes.
When should I use an Image instead of a Sprite in Phaser 4?
The sprites-and-images skill says to use Image for static visuals that need no frame-by-frame animation, since it skips the per-frame update cost. Use Sprite only when you need the Animation component with play and stop methods.
Which category does the sprites-and-images skill belong to?
The sprites-and-images skill is listed under Game Development on Claude Marketplaces. Its neighbors there include game-feel, level-design and game-ui-ux.
More from phaserjs/phaser
All 8Similar to Sprites And Images
More Game Developmentv4-new-featuresSkillphaserjs/phaser1.3K installsPhaser 4's new rendering features: Filters, RenderNodes, CaptureFrame, Gradient, Noise, and GPU layers.
animationsSkillphaserjs/phaser1.4K installsSprite animation toolkit for Phaser 4 covering global definitions, per-sprite playback, and event hooks.
pixijs-scene-spriteSkillpixijs/pixijs-skills7.2K installsReference guide for PixiJS v8 sprite classes covering Sprite, AnimatedSprite, NineSliceSprite, and TilingSprite.
04.-game-art-and-3dPluginscenario-labs/skills4.4K starsSprites, icons, tilesets, textures, skyboxes, 3D models, and walkable spaces for games, the web, and interactive scenes.
game-assetsSkillplayableintelligence/game-creator1.8K installsPixel art character and sprite generator that builds game assets from code-only matrices, with no external image files.