sprite-stacking: fake-3D pixel art you can spin, from four views
Give it four pixel drawings (top, side, front, back) and it carves a fake-3D sprite that turns to any angle
- Who
- Made by Daniel White, for people who need turning props in a top-down game or a pixel art film.
- When
- Public since November 20, 2026. No release tag yet; last changed on November 24.
- Where
- Works with Claude Code, Codex, Cursor, OpenCode, Gemini CLI and Pi. Runs in Python on your own machine.
What was hard
Putting one car into a top-down game meant drawing it eight or sixteen times, once per direction. A 3D model loses the pixel look, and sprite stacking by hand means drawing every layer yourself, which is hard to even start.
What it does about it
sprite-stacking takes only four drawings: the object seen from the top, side, front and back. It carves a volume by keeping what all four views cover, then cuts that into thin layers from the ground up. To draw it, each layer is rotated by the same angle, squashed for the camera's pitch and lifted one pixel, so every angle comes out in crisp pixels.


What people made with it
They brought the method into their own engine for pixel art films, with a proof film of props such as a wheelie bin growing in and turning, and merged it.
A prop like a wheelie bin or a smoothie stand can grow in, turn and change pitch, with no 3D engine and nothing paid.
Someone from a static hosting team carved the README's car at 18 slices into a 105 KB single-file viewer and proposed a step for sharing it at a link.
I built the README car from `tests/check.py`'s views with `views_to_slices.py ... --slices 18 --html viewer.html` (105 KB).
How it runs inside
- 1
You → Claude Code / Codex
"Make a rotatable pixel art car."A request like the ones in the skill's description makes the agent pick it up.skills/sprite-stacking/SKILL.md - 2
Claude Code / Codex → sprite-stacking (SKILL.md)
Get the four views: TOP, SIDE, FRONT, BACKWith no image generator, the agent draws the views itself in a short Python script.skills/sprite-stacking/SKILL.md - 3
Claude Code / Codex → views_to_slices.py
views_to_slices.py views.png slices.pngIt removes the background, strips the outlines and puts the four views on one shared palette.skills/sprite-stacking/scripts/views_to_slices.py - 4
views_to_slices.py → slices.png
carve: keep voxels all four views coverWhat is left is cut into flat layers from the ground up and laid out in one row.skills/sprite-stacking/scripts/views_to_slices.py - 5
views_to_slices.py → viewer.html
--preview check.png --html viewer.htmlIt writes a check sheet and a single-file viewer with the slice strip inside.skills/sprite-stacking/scripts/views_to_slices.py
What goes in, what comes out
Is it for you
Good for
- Top-down games that need cars, trees or buildings that turn without a drawing per direction
- Pixel art films and dioramas that need turning props
- Starting with only an agent, without an image generator
Not for
- A hollow that no view can see (a truck bed, a hollow arch) fills in; those slices have to be fixed by hand after carving.
- Soft edges and thin 1px lines smear once the layers rotate; the skill says to redraw rather than salvage.
- It needs Python 3 with Pillow and NumPy.
Reviewed by Devalley’s editor before publishing. How the column is made