Agent skill that turns four pixel art views into fake-3D sprites you can spin
open sourceMITself-hostablefree
sprite-stacking is an Agent Skill for Claude Code, Codex, Cursor, OpenCode, Gemini CLI and Pi that makes sprite-stacked, fake-3D pixel art for games. From four orthographic views (top, side, front and back) its Python slicer carves a voxel volume, keeping a voxel only where all four views cover it, then cuts it into a strip of flat layers that a renderer rotates and stacks one pixel apart. If no image generator is at hand, the agent draws the views itself in a short Python script. The slicer can also write normal-map and emissive strips, and a standalone HTML viewer shows the result as a turntable, a slice scan, an exploded view or a small playable scene with lighting and weather, and exports a 16-direction sprite sheet. Made by Daniel White.
Problems it solves
- make a rotatable pixel art car for my top-down game
- turn a four-view pixel art sheet into a sprite that can spin
- add fake 3D pixel art props to my Godot game without real 3D models
- have my coding agent generate sprite-stacked assets for my game
- export a 16-direction sprite sheet from pixel art views
- preview how a stacked sprite looks with lighting before putting it in the game
Features
- carves a voxel volume from top, side, front and back views
- slices it into a layer strip with a chosen slice count
- round carving for towers, pots and balloons
- shared palette reduction
- normal-map and emissive mask strips
- standalone HTML viewer: turntable, slice scan, exploded view and a playable scene
- 16-direction sprite sheet export
- installs with npx skills add or by copying the skill folder
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what sprite-stacking does.
- Aseprite Animated sprite editor and pixel art tool for Windows, macOS and Linux
