danielwh2/sprite-stacking

★ 349⑂ 25

Agent skill: turn four pixel art views into fake-3D sprites you can spin. Works with Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Pi.

About danielwh2/sprite-stacking

danielwh2/sprite-stacking is an open-source project on GitHub, mainly written in HTML. Agent skill: turn four pixel art views into fake-3D sprites you can spin. Works with Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Pi. It currently holds 349 stars and 25 forks with 0 open issues, and was last pushed on 2026-11-21 (repository created 2026-11-20).

Project Overview

AI Homed tracks it on the Today's Trending board, currently at rank #92 with 0 new stars today.

GitHub Repository Details

Repository danielwh2/sprite-stacking · default branch main · size 6423 KB · watchers 0 · source: GitHub REST API and repository README

README

sprite-stacking

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

MIT Agent skill Python 3 + Pillow + NumPy Works with Six sprite-stacked assets spinning

Install

npx skills add danielwh2/sprite-stacking

Installs to the current project. Add -g for every project, -a claude-code (or codex, cursor, ...) to pick an agent. Uses the skills CLI, Node 22.20 or later.

Or copy skills/sprite-stacking into your agent's skills folder:

| Agent | Folder | | --- | --- | | Claude Code | ~/.claude/skills/ | | Codex, Cursor, OpenCode, Gemini CLI, Pi | ~/.agents/skills/ |

Use

Ask your agent:

No image generator? The agent draws the views itself in a short Python script.

How it works

Sheet to slices to render

1. Views: top, side, front and back, orthographic, one row. 2. Carve: a voxel survives only where all four views cover it. 3. Slices: the volume is cut into a strip of flat layers, ground first. 4. Render: each layer is rotated, squashed for pitch and lifted 1 px.

Slicer CLI

python3 skills/sprite-stacking/scripts/views_to_slices.py views.png slices.png \
  --slices 36 --preview check.png --html viewer.html

Viewer

--html writes a standalone page:

Requirements

Python 3 with Pillow and NumPy (pip install pillow numpy).

Contributing

python3 tests/check.py

Prints ok.

Prior art

Sprite stacking is a long-standing indie game technique, not invented here. This skill adds the four-view carving and the agent workflow.

Licence

MIT

GitHub Stars & Activity

349Stars
25Forks
0Open issues
HTMLLanguage

GitHub Popularity

GitHub stars349
Forks25
Open issues0
Primary languageHTML
LicenseMIT
Stars gained today0
Created2026-11-20
Last pushed2026-11-21

Trending History

Daily boardrank #92 · ▲ 0 stars
Weekly boardrank #98 · ▲ 0 stars

Related AI Projects

1

cathrynlavery / diagram-design

HTML★ 70,856⑂ 4,744▲ 624 stars
→
2

shanraisshan / claude-code-best-practice

HTML★ 69,354⑂ 6,885▲ 41 stars
→
3

ToolJet / ToolJet

HTML★ 41,289⑂ 5,521▲ 12 stars
→
4

xbtlin / ai-berkshire

HTML★ 17,229⑂ 2,542▲ 14 stars
→
5

plannotator / effective-html

HTML★ 4,303⑂ 295▲ 6 stars
→
6
→
7
→
8
→

More AI Rankings