aldegad

sprite-gen: Generate Game Sprites and Animation Atlases

sprite-gen is a Python CLI and Codex/Claude skill that turns a still image into transparent game sprites, runtime atlases, or motion loops. Its video pipeline uses Grok Imagine to animate stills, then extracts and prepares frames for game use.

NewPythonApache-2.0CLIAI AgentsGame Development
Stars
3k
Forks
325
Last commit
2 days ago
Contributors
5
Releases, 12 months
69

Our take

Newless than six months old and changing fast

Health score

52/100

How it is scored
Activity
87
Community
16
Issues
21
Pull requests
85
  • Merges more pull requests than 98% of the projects we track
  • Releases more often than 90% of the projects we track

sprite-gen is a broad, actively changing asset pipeline that offers useful game-specific processing, but its recent pace and highly concentrated contributions call for review before a team depends on it.

Good fit if

  • You need a Python-based workflow for turning still images into transparent sprites, atlases, or loops.
  • Your workflow can use the required provider credentials and, for video processing, the documented external tools.
  • You value frequent releases and can keep up with a young project that is changing quickly.

Look elsewhere if

  • You need a mature project with contributions spread across multiple maintainers; most development comes from one contributor.
  • Your environment cannot run Python 3.11 or newer.
  • You need a sprite workflow that does not depend on external image or video generation providers for generated assets.
All health signals
Last commit2026-10-21 (2 days ago)
Commits, last 90 days100+
Releases, last 12 months69 (latest v2.45.3, 2026-10-21)
Contributors5 (top contributor: 100% of commits)
Issues closed, last 90 days0+
Pull requests merged, last 90 days97 (typically merged in 0 days)
Project age5 months

Checked on 2026-10-23 with the GitHub API.

Overview

sprite-gen is a Python CLI and Codex/Claude skill for turning one character image into game-ready sprite assets. Its atlas pipeline generates state rows, cleans up transparency, extracts frames, and builds an atlas with a machine-readable layout manifest. For animated loops, it uses Grok Imagine to create video clips and then cuts them into transparent animations.

The tool targets game developers and coding-agent users who need more than a generated sprite sheet: it includes frame extraction, optional visual curation, runtime-oriented exports, and tools for processing existing assets. Generation uses provider credentials supplied by the user, while some workflows also rely on external command-line tools.

Key Features

  • Generate sprite states from a base image, then extract transparent frames and compose a runtime atlas with frame-layout metadata.
  • Create per-state motion loops from still images using Grok Imagine video generation and frame-processing commands.
  • Review, reject, or adjust generated frames in an optional curation webview before composing an atlas.
  • Apply deterministic palette-based recoloring and export atlases for formats including Aseprite, Phaser, and Flame.
  • Process existing art with utilities for cutouts, sheet slicing, atlas unpacking, repeating backgrounds, and projected shadows.
  • Inspect animation timing and contact evidence, and optionally compose existing assets into rendered scenes.

Use Cases

  • A solo game developer wants to turn one character illustration into an atlas with explicit frame rectangles for a game engine.
  • A developer using Codex or Claude wants an agent-accessible workflow to generate, inspect, and prepare sprite assets.
  • An artist needs transparent idle, attack, or other motion loops from a still image and is prepared to use the video pipeline.
  • A team with existing sprite sheets wants to slice, recolor, export, or inspect assets without regenerating them.

What you need

Detected in the repository

  • Python >=3.11 (from pyproject.toml)
  • A test suite

License in plain words

Apache-2.0permissive

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the license, the NOTICE file and a note of your changes
  • Share your changes: no
  • Includes an explicit patent grant from the contributors:

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

python3 -m venv .venv && source .venv/bin/activate
pip install -e .
sprite-gen --help

See the README for pipeline commands, provider setup, and workflow documentation.

Considerations

The project is less than six months old and is changing quickly, with recent commits and frequent releases. Although it has several contributors, nearly all measured contributions come from one person, so maintenance continuity is a consideration. The measured health data reports tests but no CI. The atlas workflow needs Python 3.11 or newer; video workflows additionally document requirements such as ffmpeg, img2webp, and a Grok login or API key. Generated assets rely on user-provided credentials, and API-key calls may incur per-call costs. The README also cautions that facing detection can be wrong and that cyclic locomotion remains experimental unless motion QA passes.

Found this useful?

Share it with someone who would like sprite-gen.