- Home
- Skills
- Game Development
- Game Sprite Sheet Pipeline: On-Model 2D Sprites & Atlases
Works with the AI Agents you already use
Game Sprite Sheet Pipeline: On-Model 2D Sprites & Atlases
Managing consistent game assets across multiple animations is a manual bottleneck.
$15
Game Sprite Sheet Pipeline: On-Model 2D Sprites & Atlases
Example session with this skill installed
Create a sprite sheet pipeline for a 32x32 pixel art protagonist for a Phaser game. I need idle, walk, and jump animations. Style is 4-color GameBoy aesthetic.
- Read your context and instructions
- Compiled the game sprite sheet
I have generated the art bible and technical pipeline for your protagonist. The scripts below will handle the alignment and packing specifically for the Phaser 3 texture packer format.
Game Sprite Pipeline: Protagonist
ART BIBLE
- Palette: #0f380f, #306230, #8bac0f, #9bbc0f (Classic GB)
- Resolution: 32x32 per frame
- Pivot: Bottom-center (16, 32)
- Light Direction: Top-left
- Naming:
hero_{anim}_{frame}.png
ANIMATION TABLE
| Entity | Anim | Frames | ms/frame | Loop |
|---|---|---|---|---|
| Hero | Idle | 4 | 150 | Yes |
| Hero | Walk | 6 | 100 | Yes |
| Hero | Jump | 3 | 100 | No |
MODEL SHEET PROMPT
2D pixel art sprite sheet, small protagonist character, 4-color #0f380f #306230 #8bac0f #9bbc0f, 32x32 grid, front view, side view, back view, transparent background, crisp edges, no anti-aliasing.
PROCESSING SCRIPT
import json
from PIL import Image
import os
def pack_sprites(folder, out_name):
frames = sorted([f for f in os.listdir(folder) if f.endswith('.png')])
sheet = Image.new('RGBA', (32 * len(frames), 32))
atlas = {"frames": {}}
for i, f in enumerate(frames):
img = Image.open(os.path.join(folder, f))
sheet.paste(img, (i * 32, 0))
atlas["frames"][f] = {
"frame": {"x": i*32, "y": 0, "w": 32, "h": 32},
"sourceSize": {"w": 32, "h": 32},
"pivot": {"x": 0.5, "y": 1.0}
}
sheet.save(f"{out_name}.png")
with open(f"{out_name}.json", "w") as j:
json.dump(atlas, j)
# Run: pack_sprites('raw_frames', 'hero_sheet')
PHASER LOADING SNIPPET
this.load.atlas('hero', 'hero_sheet.png', 'hero_sheet.json');
// Play animation
this.anims.create({
key: 'walk',
frames: this.anims.generateFrameNames('hero', { prefix: 'hero_walk_', end: 5 }),
frameRate: 10,
repeat: -1
});
Next steps
- Use the Model Sheet prompt to generate your base character designs.
- Save individual frames into a folder named
raw_framesusing the naming convention. - Run the
pack_sprites.pyscript to generate the final assets for Phaser.
Connects securely to your tools. The creator never sees your data.
About this skill
Managing consistent game assets across multiple animations is a manual bottleneck. A single off-center pivot point or a slight palette shift can break an entire character in-engine. This skill automates the technical pipeline for 2D sprites and sprite sheets.
What it does
- Standardizes art bibles by locking hex palettes, resolutions, light directions, and proportions before production starts.
- Generates animation lists that define frame counts, timing, and looping behavior for every entity.
- Engineers consistency prompts for AI image tools to keep characters on-model across different poses and actions.
- Automates sprite packing by writing custom Python or Node scripts to trim, pad, align, and pack frames into sheets.
- Exports engine metadata in JSON formats compatible with Phaser, Godot, Unity, or PixiJS.
- Performs QA audits to check for palette drift, stray pixels, and frame jitter.
How it works
- Define the project by providing the target engine, resolution, and art style.
- Review the art bible and animation table to ensure the technical constraints match the gameplay needs.
- Execute the processing script to transform raw frames into aligned, packed sheets with metadata.
- Integrate the output using the provided engine-specific code snippets for loading and playback.
Frameworks & tools
Supports Phaser, Godot, Unity, and PixiJS. Generates automation scripts using Python (Pillow) or Node.js.
Why this beats prompting it yourself
Generic prompts fail to maintain pixel-perfect alignment and palette consistency across forty separate frames. This skill bridges the gap between raw image generation and engine-ready assets by enforcing strict technical constraints and providing the scripts to handle the math of packing and pivots.
Use cases
- Generating a complete hero character sheet with idle, run, and attack cycles.
- Converting a folder of loose AI-generated frames into a structured JSON atlas.
- Auditing existing sprite sheets for palette consistency and transparent edge artifacts.
- Prototyping multi-frame animations for a specific engine like Godot or Phaser.
Known limitations
Does not directly generate image files; requires the user to provide raw images or run generated prompts in external tools. Requires a local environment to run the packing scripts.
It writes prompts but does not generate images itself; you create the frames in your own image tool or by hand. The packing script needs Python with Pillow or Node. AI-generated frames usually need some manual cleanup, especially for pixel art.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 17 days ago