Top left: GPT asked for a walk, as it came out. Everything else: SpriteCast's own output.
One illustration in. A game character out.
A Claude Code skill that makes 2D game sprites - isometric or side-scrolling, painted or pixel art -
that really walk, fight and cast, at your game's camera angle, each frame with its shadow, ready for your engine.
What you can make · The tools · Characters · Pixel art · Props · Cost · Install · 한국어 · 简体中文 · 日本語 · Español · Português
claude plugin marketplace add Sunghwan0112/spritecast
claude plugin install spritecast@spritecast
Then just ask: "Here's my character (hero.png). Make her walk in 8 directions." To try it free, with no key, ask Claude to "try SpriteCast".
An image model (OpenAI's, with your own key) does the drawing. The body, the motion, the angle and the shadow come from 3D - so every frame is the same person, and she actually walks.
Change the clothes, keep the moves. No 3D model of her - every outfit drawn on SpriteCast's 3D mannequin. $0.12 a look.
20 body types. Each character is drawn over its own mannequin's walk - say "a stout innkeeper" or "a dwarf blacksmith" and the build carries into every frame.
Everything from one camera - the hero, the trees, the ground, the potion she picks up. That is what stops a game looking pasted together.
You just talk to Claude; these are what it runs for you. All run on your computer - only the drawing goes out to OpenAI.
Make
creature.py |
A character from a sentence. Drawn on one of 20 mannequins - no 3D model, $0.06 a picture. Monsters or your main character: walks, actions and sitting, from the side or from above. |
charpipe.py |
Your illustration, alive. Turned into a rigged 3D model, then every frame drawn back in your style. |
pixelart.py |
Any move, as pixel art. Clean outlines, your palette, every character at one body size. |
isoprop.py · proppixel.py |
Any prop from words. At real size and your game's angle, so things made months apart stand on one floor. |
ground.py |
The ground under it all. A meadow, a path, puddles - free, nothing to draw. |
seat.py |
Sit her down. On any chair you made, with what stands in front of her worked out. |
Move
compose.py |
Stitch moves into one. Stance → cut → stance, wind-up → spell, with no pop between them. |
addclip.py · motion.py |
Bring any clip. FBX, GLB or BVH onto your character; trim, speed up, hold the hit. |
dashfx.py |
A lightning dash. A lunge carried across in an instant, a bolt left behind. |
fxpack.py |
253 pixel effects (CC0) - fire, ice, lightning, holy - fitted to your sprites. |
propanim.py · translucent.py |
Props that move, and see-through things: a flame's tips, a ghost's tail. |
Fix - free, no redrawing
bodyedit.py |
Your animation desk. Every move played into the next: cut, copy and reorder frames, fix a head, toggle each effect frame by frame. |
pixeledit.py |
A pixel editor over every frame. Pick up a face from one frame, paste it on the next, nudge it, place it. |
lightedit.py |
Drag a lamp, watch the shadow follow. Baked from the 3D model. |
touchup.py · propedit.py |
Paint the last touches; click where a gun's muzzle is. |
Ship
export.py |
Straight into Godot 4, Unity, Phaser 3 or Aseprite. play("walk", "south-east") - and a shot fires its own bullet on the right frame. |
manualdraw.py |
No API key? Every drawing becomes a copy-paste job for the ChatGPT app - free. |
doctor.py |
Set up in 10 seconds. Its own venv; your Python left alone. |
Step by step: the characters, pixel art, props and engines guides, and the weapons.
Free and MIT: you pay OpenAI and Tripo directly, nothing goes to the author, and every paid step shows its cost and waits for your OK. A character on the mannequin walking in 8 directions is about $0.75; with its own 3D model about $3; a prop a few cents. The 3D guides, the moves, the shadows, the ground, the editors and the export cost nothing.
what each one costs
| you give | you get | about | |
|---|---|---|---|
| A walking character on a 3D mannequin | a description and a picture from your game | a walk in 8 facings seen from above (or a side view) - no 3D model made of it | $0.54 ($0.06 the design + $0.06 a facing) |
| A walking character | one illustration | a walk in 8 facings, standing views, a shadow per frame | $2.9 (drawing $2.1 + Tripo $0.75) |
| Another action | a name, or one of the bundled free moves | run, jump, slash, throw... in 8 facings | $0.8-1.5 an action (a bundled move: no Tripo) |
| Pixel art | a character that walks | pixel sprites about 100 px tall | $1.35 a walk in 8 facings ($0.075 a sheet) |
| An animal | one illustration | a four-legged walk in 8 facings | $2.8 (drawing $2.5 + Tripo $0.30) |
| A side-scroller's hero | one illustration | a walk and standing seen from the side, her actions | $1.1 (drawing $0.33 + Tripo $0.75), each action ~$0.3 |
| A side-scroller's monster or townsperson | a description and a picture from your game | a design, a walk on a mannequin, four moments (struck, falling apart) | $0.18 |
| Sitting | a character that walks | seated in 8 facings, placed on your props | $0.22 (four facings: $0.11); on the mannequin $0.16 |
| A prop, or a posed NPC | a description | a sprite, its shadow, its anchor | $0.08 (+ $0.09 a further facing) |
| A pixel-art prop | a description | pixel sprites from every side, at the pixel character's scale | $0.28 for one side |
These are the figures each script prints before it spends (1 Tripo credit = $0.01); the bills have come in a little under.
An image model can't keep a body and a pose from one frame to the next. Asked for a walk in words, it gives eight nice drawings that don't walk:
| GPT alone | SpriteCast |
|---|---|
| the same leg in front in all eight frames | the legs come from a 3D walk |
| the arms twitch at random | the arms swing against the legs |
| the camera at eye level | your game's camera (30° down by default) |
| no shadow | the 3D body's own shadow, frame by frame |
So SpriteCast never asks it to. 3D does the moving; the image model only redraws each rendered frame in your illustration's look. Every drawing is fitted back onto its render and checked against it: a frame drawn in another pose is flagged and can be redrawn, never squeezed to fit. Props work the same way, with blocks at real size in place of the rig - so props made at different times line up on one floor, all lit by the same light.
Two small games made as examples, each in about a day, with every picture from SpriteCast - to show what you can build with it.
▶ Play it in your browser · the game's code
No install, no account.
Rain Girl, a small pixel action game: a girl in a yellow raincoat puts out fire monsters with her umbrella's water before the forest burns.
- The girl and the forest: Tripo models rendered at the game's camera (2:1, 30° down) and redrawn as 96 px pixel art - her walk, attacks and water in four facings, and seven props from four sides each, all lit from the same side.
- The effects are from PVFX Foundry (CC0), which comes with SpriteCast: 253 of them,
fxpack.pyto fit one to your sprites. - More - the props, the combo, the effects up close: how it was made.
▶ Play it in your browser · the game's code, and how each picture was made
No install, no account.
The same girl in a painted side-scrolling world, hunting what the rain has woken on a castle wall. Everyone in it - the heroine in three looks as she levels up, five monsters, three townspeople - is drawn on SpriteCast's mannequin, with no 3D model of their own; the board is painted in 2D. How: A side-scrolling game.
Everything below the overview, step by step:
- Characters: walks, actions, effects, sitting, fixing by hand - walks in 8 facings or a side view, on the mannequin or a 3D model; animals; monsters drawn in 2D; actions, effects and joins; sitting; fixing by hand
- Pixel art: characters, props, light, wind and the ground - pixel-art characters and props, colours and palettes, the pixel editor, light, shadow and wind from the 3D model, the ground
- Props, scenery, posed figures, shadows and cameras - props and scenery, a session, examples, a Tripo model first, posed figures from words, shadows that match the drawing, cameras
- Engines - Godot, Phaser, Unity, Aseprite; how it works; troubleshooting; what it sends
- Rain Girl - how the Rain Girl game was made
In a terminal:
claude plugin marketplace add Sunghwan0112/spritecast
claude plugin install spritecast@spritecast
or inside Claude Code: /plugin marketplace add Sunghwan0112/spritecast, then /plugin install spritecast@spritecast.
You also need only Python 3.9+ and a browser (Chrome, or Edge - every Windows has it). The first time, Claude runs the setup
check (doctor.py --fix): it makes its own venv in ~/.cache/spritecast/ with the few packages (about 10 s), leaves your Python
alone, and tells you what each thing is for. Nothing to install by hand.
| what | for | needed? |
|---|---|---|
| Python 3.9+ | runs the scripts | yes |
| playwright + Chrome or Edge | renders the 3D guide on your computer (free) | yes (set up for you; a browser you have is used) |
OPENAI_API_KEY |
drawing | to draw |
TRIPO_API_KEY |
a 3D model: a walking character's (with its rig and walk), or a prop's for more detail | for walking characters; not for props from blocks, posed figures or creature.py |
Try it first, free, no key: ask Claude to "try SpriteCast". It renders one of the examples' guides on your computer and finishes it with the drawing that came with the example, so you see the whole way before paying for anything.
Keys: where they go, and OpenAI's verification
Keys: in the plugin's settings. When you enable SpriteCast, Claude Code asks for them (/plugin → SpriteCast → configure,
to change them later): the OpenAI key, and the Tripo key if you make walking characters - from Tripo's API platform, where API
credits are bought (75 a character, 30 an animal). They are kept in your system's credential store, masked, and handed to
SpriteCast's scripts when a session starts. A key already in your environment still works when the settings have none:
export OPENAI_API_KEY=sk-... # macOS / Linux (add it to ~/.zshrc or ~/.bashrc to keep it)setx OPENAI_API_KEY "sk-..." # Windows (then open a new terminal)On Windows the settings reach the scripts only when Claude Code runs its commands in Git Bash (its default when Git is installed); in PowerShell use the environment. Either way, set or change a key before you start Claude Code: one set while it runs is seen only after a restart. Your key stays on your computer; it is only sent to OpenAI.
OpenAI may ask you to verify your organisation before a key can use image models (platform.openai.com → Settings → Organization): do it once before your first drawing.
Running the scripts yourself
Claude runs them for you. To run them by hand from a clone of this repo, use the Python that doctor.py prints on its last line
(PYTHON=...); after --fix it is ~/.cache/spritecast/venv/bin/python (Windows:
%USERPROFILE%\.cache\spritecast\venv\Scripts\python.exe). A plain python may not have the packages (No module named ...):
python3 skills/spritecast/scripts/doctor.py --fix
PYTHON=$(python3 skills/spritecast/scripts/doctor.py | sed -n 's/^PYTHON=//p')
$PYTHON skills/spritecast/scripts/isoprop.py --helpOn Windows, in PowerShell:
python skills/spritecast/scripts/doctor.py --fix
$PYTHON = "$env:USERPROFILE\.cache\spritecast\venv\Scripts\python.exe"
& $PYTHON skills/spritecast/scripts/isoprop.py --helpEverything runs on your computer except the drawing (OpenAI) and the 3D models (Tripo, or Meshy if you choose it). What is sent where, and what is downloaded.
What is planned next, roughly in this order (no dates - it moves with feedback):
- Seat-fitted poses, and riding: a pose shaped to each seat, and characters riding in carts and vehicles.
- Turning objects: a vehicle rotated through many angles, so it turns smoothly instead of snapping between 8 facings.
- Night versions: a mask of what gives light (windows, bulbs, neon), for your engine to light after dark.
- Walk-through props, automatic: the front piece worked out from the 3D guide (today it is painted on the touch-up page).
- More held things (a staff, a bow) and effects with no held thing (a kick, a footstep's splash).
- Small sprites: the small design made from the ordinary one in one step, and a face at 32 px that needs no hand.
- Engine exports for pixel sets.
See CHANGELOG.md for what each version changed.
Feedback decides what comes next, and what changed because of it is marked in the changelog.
- Something broke: open an issue with the bug form - your OS, Python version, the command and the message help most.
- An idea or a missing feature: the feature form in issues.
- Show what you made, or ask how: Discussions.
- The output is yours.
- Leave real brands, logos and characters from existing games out of descriptions.
- Don't use a living artist's work as your style picture without their permission.
- A
photofor a character's likeness: only of someone who agreed to it. - Settings:
SPRITECAST_MODEL(the default isgpt-image-2.6-sunburst;gpt-image-2.5-sunburstdraws with the one before) andSPRITECAST_QUALITY(low|medium|high).
- What does it cost? See what each one costs, near the top.
- Which keys do I need?
OPENAI_API_KEYto draw,TRIPO_API_KEYfor walking characters and animals (Meshy optional). Where they go, and OpenAI's verification: Keys. - Isn't this AI art? Yes: an image model does the painting; the size, the camera angle, the walk and the shadows come from 3D
(Why it works). You can give your own art as the style, or set
"draw": falseso the 3D renders are the frames (Skipping the drawing). - Do I draw pixel art frame by frame? No. The frames are drawn by the image model from the 3D renders and cleaned up automatically; what is left is a few pixels a frame in the pixel editor.
- What doesn't it do? Walking characters start from an illustration facing front, standing straight. Pixel art works at 96 px, and at 64 px for a character designed small; a 32-px set is made from the 64 one, with rougher faces. Look at the results yourself: the outline check can't see a head turned the wrong way.
- Which engine? Any that takes PNGs: you get the sprite, its shadow and the anchor in JSON, and ready-made files for Godot, Unity, Phaser and Aseprite (engines).
- Tripo, for the API credits it gave SpriteCast: the fifteen newest mannequins were modelled and rigged with them.
- Quaternius, whose free Universal Animation Library 1 and 2 and medieval weapons (CC0) come bundled. If they help you, support Quaternius on Patreon.
- PVFX Foundry and Kenney, for the CC0 effects.
MIT - the code and the examples (pictures, strips and the rain girl's rigged model alike). three.js (bundled in skills/spritecast/scripts/vendor/three) is MIT, © three.js authors. The effects in skills/spritecast/effects/pvfx are PVFX Foundry by Pixel VFX Studio, CC0 1.0 (its LICENSE.txt there). The moves in skills/spritecast/motions are CC0 1.0: Quaternius's Universal Animation Library 1 and 2 (Standard) by Quaternius, and RobotExpressive by Tomás Laulhé (converted by Don McCurdy for three.js) - their license and readme files there. The smooth effects' pictures in skills/spritecast/effects/smooth are from Kenney's Particle Pack (kenney.nl), CC0 1.0 (License-Kenney.txt there); the slash bands there were made here. The pistol in skills/spritecast/props was made with Tripo from words and is MIT with the rest; the other weapons there are Quaternius's Low Poly Medieval Weapons, CC0 1.0 (its README there).