aldegad/sprite-gen

Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame extraction, runtime atlases. Codex/Claude skill.

What it solves

sprite-gen solves the problem of generating usable, game-ready 2D sprites from AI image models. Standard AI-generated sprite sheets often suffer from inconsistent character identity, drifting poses, and backgrounds that are difficult to remove, making them unusable for actual game engines.

How it works

The tool takes a single base image and uses a structured pipeline to generate consistent motion states. It offers two primary paths:

  1. Atlas Pipeline: Generates character states row-by-row, extracts them into transparent frames, and bakes them into a runtime atlas with a machine-readable manifest.json layout.
  2. Video Pipeline: Uses video models (like Grok Imagine) to turn a still image into seamless, transparent animation loops per motion state.

It includes a "Backbone Lattice" to keep pixel art on a consistent grid and a "Breathe" feature that adds deterministic squash-and-stretch animation to idle poses. A curation webview allows users to reject or nudge frames before final baking.

Who it’s for

It is designed for game developers and artists who want to use AI to quickly create animated character assets and environment tiles without manual frame-by-frame cleanup.

Highlights

  • Runtime Manifests: Produces a manifest.json.frame_layout so game engines can sample exact rectangles instead of guessing a grid.
  • True Alpha Transparency: Uses a specialized extractor to remove chroma backgrounds without leaving fringes.
  • Deterministic Recolor: Allows creating multiple character color variants from a single palette map.
  • Integrated Asset Tools: Includes utilities for creating repeating background tiles and projected shadows.
  • Scene Rendering: An optional workflow to compose finished assets into scenes with camera motion and lighting.

Related

  • Project
  • Project
  • Project
  • Project
  • Project