SpriteKiln
English | Português (BR) | 한국어 | 日本語 | 简体中文
Animated pixel-art sprites from procedural 3D models, made to be driven by coding AIs.
A character is a small YAML file: a skeleton, smooth 3D shapes, materials and animations. SpriteKiln renders it into pixel art in 8 directions (top-down 3/4) or in profile (side view), with exact frame timing, gameplay events, attachment points, a normal map for dynamic light and an emissive layer, ready for Godot, Unity, MonoGame or any engine that reads Aseprite sheets.
You do not have to write the YAML. Your coding assistant (Claude Code, Codex, Gemini, Copilot, Cursor) does, from a description or a splash art: it edits the spec, renders, looks at the images and fixes what it sees. You direct.
Why
- Consistent by construction. One camera, one light and one palette for every asset, in every direction and frame. No drift between the north-east walk and the south-west attack.
- Cheap to change. "Make the hat bigger" or "slow down the windup" is a one-line edit, not a redraw of 300 frames.
- Game-ready. Per-frame durations, events (
hit,step_l,windup) on the right frame, sockets (muzzles, hands, impact points), the pivot on the ground for y-sorting, normal and emissive maps. - Made for AIs. One set of instructions for every assistant, an MCP server whose tools return images,
a JSON Schema for the spec, errors with
file:line:column, and an art-direction review in numbers for assistants that cannot see. - Pure Python, any OS. numpy, Pillow and PyYAML; no GPU, no Blender. Tested on Windows, macOS and Linux.
Install
Python 3.10 or newer. Install the spritekiln command with pipx, which keeps it
isolated and on your PATH:
Windows (PowerShell; no Python yet? winget install Python.Python.3.13, then open a new terminal)
py -m pip install --user pipx
py -m pipx ensurepath
py -m pipx install "spritekiln[mcp]"
macOS (Terminal, with Homebrew)
brew install pipx
pipx ensurepath
pipx install "spritekiln[mcp]"
Linux (Debian/Ubuntu shown; Fedora: sudo dnf install pipx, Arch: sudo pacman -S python-pipx)
sudo apt install pipx
pipx ensurepath
pipx install "spritekiln[mcp]"
Then open a new terminal and check with spritekiln --version. [mcp] adds the tools for AI assistants;
pipx install spritekiln is enough for the command line alone. uv, a virtual environment, upgrading and
troubleshooting: Install SpriteKiln.
Quick start
The same on every system:
spritekiln new knight # specs/characters/knight/knight.yaml, from the template
spritekiln render specs/characters/knight/knight.yaml # atlas, JSON, maps, GIFs -> specs/characters/knight/out/knight/
Then hand it to your assistant: "Turn this knight into a hooded goblin scout with a short sword. Check
all 8 directions before rendering." To set up a game project, run
spritekiln init --engine godot --ai claude in its folder; see
Use SpriteKiln with your AI.
How it works
spec.yaml ──► skeleton + IK ──► SDF shapes ──► raymarched render ──► pixelize ──► atlas + JSON
(bones, (expressions per (spheres, (colour, normals, (palette ramps, + normal map
shapes, frame: cycles, capsules, depth, materials; outlines, clean + emissive map
materials, keys, events) boxes, cones, 3x supersampled, single pixels) + GIFs, QA
animations) smooth unions) fixed world light) -> your engine
The light is fixed in the world and the model turns, so shading stays coherent across directions. Every render writes a QA report (clipping, palette, silhouette stability) and contact sheets to review.
Features
- Modeling: bones with expressions (
"0.045*sin(p)"), 2-bone IK, smooth SDF primitives, mirrored_L/_Rparts, materials with palette ramps, emissive and glow, two-sided membranes, conditional parts. - Animation: cycles from expressions or keyframes with per-frame timing, tweens and easing, smears,
per-direction cheats, events, timing targets checked by
validate(e.g. "impact at 300 ms"). - Views: top-down 3/4 in 8 (or 4, or 1) directions, or a side view for platformers (
view: side, with a template that has run, jump, rise, fall and land);mirror: truerenders only the right-facing directions (the engine flips the rest) for symmetric designs. - From a splash art:
ref prepcuts the character out and extracts its palette;ref comparescores the silhouette against the model (pitch-corrected IoU) and says what to change. - Review:
spritekiln reviewmeasures value range, contrast, pixels per material and legibility, and previews the sprite over your game's floor (--bg) under its light (--tint). - Output: atlas, normal and emissive maps, Aseprite-compatible JSON (format), sockets per frame, GIFs and contact sheets.
Engines
| Engine | What you get | Guide |
|---|---|---|
| Godot 4 | KilnSprite2D node, SpriteFrames and a ready scene; an editor plugin builds them from a dropped JSON |
godot.md · example |
| Unity 2022.3+ | UPM package: .kiln importer (sprites, normal map, AnimationClips) and KilnAnimator |
unity.md |
| MonoGame | KilnSprite.cs runtime and the KilnLit.fx normal-mapped light shader |
monogame.md · example |
| Anything else | Aseprite-compatible JSON: Phaser, LÖVE, Defold, GameMaker... | generic.md |
All runtimes play the same way: exact durations, events on the frame they belong to, sockets, the direction nearest to a velocity, mirrored directions.
AI assistants
| Assistant | Instructions | MCP tools |
|---|---|---|
| Claude Code | CLAUDE.md, skills, and modeler / animator / art-director agents |
.mcp.json |
| Codex | AGENTS.md |
~/.codex/config.toml |
| Gemini CLI | GEMINI.md |
.gemini/settings.json |
| GitHub Copilot | .github/copilot-instructions.md |
.vscode/mcp.json |
| Cursor | .cursor/rules/spritekiln.mdc |
.cursor/mcp.json |
spritekiln init --ai claude,codex,... writes them from one source (docs/agent/). The
recipe for a new character from a splash art: a modeler builds the shape, an art director reviews it
against the art, the modeler fixes, an animator animates, the director reviews again
(recipe.md).
Showcase
The Templar and the Huntress were made with SpriteKiln for the game Hunt Tower, from their splash arts,
by Claude Code following the recipe above. Their specs are in specs/characters/; more images, animations
and in-game captures are in showcase/.
Learn more
- Install SpriteKiln (Windows, macOS, Linux; pipx, uv or a virtual environment)
- Your first character in 10 minutes
- From your splash art, with an AI
- Animations and events
- A platformer character (side view)
- Use SpriteKiln with your AI (instructions files and MCP tools)
- Spec reference · Output format · Roadmap
- Contributing · Changelog · Translations: Português (BR), 한국어, 日本語, 简体中文
License
Code, docs and integrations: MIT. Example assets (the gargoyle, the hunter, Wren, the crates, gas lamp
and training dummy props, the templates, the gothic and props palettes, the examples' sprites):
CC0 1.0. Showcase assets (Templar and Huntress from Hunt Tower, with the Huntress's
mine: specs, splash arts, palettes, renders and game captures): © 2026 Lucas Ramos / PlayRPG, all rights
reserved, included for demonstration only (terms).
REUSE.toml maps every path to its license.
Metadata
Release files for spritekiln 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spritekiln-0.1.0.tar.gz | 1.0 MB | With provenance | Details for spritekiln-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spritekiln-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for spritekiln-0.1.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / spritekiln-0.1.0.tar.gz
| Download URL | spritekiln-0.1.0.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a90ad8dd3d58216ddd3f3a15ad7a6af0ba0a8648118a1d20b8449cf3143efe94
|
|
BLAKE2b-256 checksum How to use checksums |
06ea735b1a5296b23d4edcbc739737bc033fbb03792f140ba8082cd4a1604a43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / spritekiln-0.1.0-py3-none-any.whl
| Download URL | spritekiln-0.1.0-py3-none-any.whl |
|---|---|
| Size | 142.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92a2aa1c4518aa640fd6dbdfea82a5a2ffbd4e7da6d6e42fde0b79cb84aac39d
|
|
BLAKE2b-256 checksum How to use checksums |
41068b4f228d9b8edf49048bf629e0e4cae8438c6d5b1d26286a9965346a5e89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for spritekiln 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for spritekiln-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.