AI News
All projects
Skill

Sprite-stacking skill turns four pixel art views into spinnable fake-3D sprites

An agent skill that turns four pixel art views into a stack of flat layers that can be rotated into a fake-3D sprite.

sprite-stacking by danielwh2 · 1,262 GitHub stars when we found it · added

The skill takes four orthographic pixel art views, laid out in one row: top, side, front and back. It turns them into a stack of flat layers that, once rotated and lifted slightly, look like a 3D object you can spin. According to the README, a voxel survives only where all four views cover it, so the carved shape is the overlap of the four silhouettes. The volume is then cut into slices, with the ground layer first. Each slice is rotated, squashed for pitch and lifted by one pixel when rendered.

Installation is a single npx command through the skills CLI, which requires Node 22.20 or later. A manual copy of the skills/sprite-stacking folder into an agent's skills directory also works. The author says it works with Claude Code, Codex, Cursor, OpenCode, Gemini CLI and Pi. You ask the agent in plain language for something like a rotatable pixel art car. If no image generator is available, the agent draws the four views itself with a short Python script. The slicer needs Python 3 with Pillow and NumPy. It takes a layer count, with 15 to 20 suggested for chunky sprites and 32 to 48 for detailed ones.

The optional HTML viewer offers turntable, scene, slice-scan and play modes, along with time-of-day and weather effects and a 16-direction PNG sprite sheet export. The README credits sprite stacking as a long-standing indie game technique and says this skill adds the four-view carving and the agent workflow. The licence is MIT. The README gives the viewer's frame cost in Chrome as about 0.2 to 1.5 ms. That figure comes from the author.

In the author's words

An agent skill that turns four pixel art views into fake-3D sprites you can spin.

From the README or the author's post. We checked that the sentence is there, not that it is true.

When to reach for it

A reader who wants turntable sprites without 3D modelling could reach for this when a 2D game needs an object seen from all sides, since the four hand-drawn views are the only input. The explicit layer-count guidance is a useful starting point for choosing between chunky and detailed looks.

Works with

Claude CodeCodexCursorOpenCodeGemini CLI

See it

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it. How this list is made