BACK TO CARTRIDGESDOWNLOAD BYOK BUNDLE (.JSON)
CLS-01 · Pixel & 2D VisualsVERSION 1.3.0 · 1,421 INSTALLS
Pixel Sprite Sheet & Grid Slicer
Generate 4-direction walk/attack keyframes with locked 16-color palettes and pixel-aligned slicing.
ENGINE: godot4ENGINE: unityENGINE: phaserAI: imageAI: code
npx aigameskills add pixel-sprite-animatorSKILL.MD · INSTRUCTION MANUAL
## Purpose Eliminate blurry "mixels" (inconsistent pixel sizes) and drifting character proportions across animation frames. ## Workflow Rules 1. **Lock Grid & Palette First**: Specify target cell size (`32x32` or `64x64`), orthographic camera angle (top-down 3/4 RPG vs side-scroller), and a strict 12-to-16 swatch hex palette before invoking image generation. 2. **Generate Solid Keyframes on Chroma Magenta**: Request crisp, nearest-neighbor silhouettes on flat `#FF00FF` background with zero anti-aliasing along outer contours. 3. **Run Grid Normalization**: Pass generated frames through `scripts/slice-spritesheet.ts` to snap centroids to baseline pixels and export engine-ready metadata (Godot `SpriteFrames` `.tres` or Phaser Atlas JSON).
BUNDLED SCRIPTS & REFERENCES (1)
scripts/generate-spritesheet.ts
// __AGS_RUNTIME_CONFIG__
export async function requestSpriteStrip(characterPrompt: string): Promise<string> {
const response = await fetch(`${AGS_API_BASE}/images/generations`, {
method: 'POST',
headers: {
Authorization: `Bearer ${AGS_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
skillSlug: 'pixel-sprite-animator',
prompt: `16-bit pixel art 4-frame horizontal sprite strip, ${characterPrompt}, flat #FF00FF background, crisp 1px outline, nearest-neighbor`,
size: '1024x256',
}),
});
if (!response.ok) throw new Error(`Sprite generation failed: ${response.status}`);
const payload = (await response.json()) as { data: Array<{ url: string }> };
return payload.data[0]?.url ?? '';
}
LIVE CRT SKILL PLAYGROUND
COST: 8 MANA