claudeers.
// Claude Skills

sprite-stacking

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

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up sprite-stacking (git-clone project) into my current project.
Found on https://claudeers.com/sprite-stacking
Repo: https://github.com/danielwh2/sprite-stacking
Homepage/docs: —
Detected install method: git-clone → git clone https://github.com/danielwh2/sprite-stacking
Category: skills. Platforms: cli.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
unknown; community-verified: false. Confirm the source before running anything.
// or clone
git clone https://github.com/danielwh2/sprite-stacking

// compatibility

Platformscli
Operating systems—
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguageHTML

Get your FREE $2.50 API credits to access TickAtlas financial data ↗

sprite-stacking

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

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:

AgentFolder
Claude Code~/.claude/skills/
Codex, Cursor, OpenCode, Gemini CLI, Pi~/.agents/skills/

Use

Ask your agent:

  • "Make a rotatable pixel art car."
  • "Sprite stack this 4-view sheet and give me a turntable."
  • "Add a fake 3D pixel art tree to my Godot game."

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
  • --slices N: layer count. 15-20 chunky, 32-48 detailed.
  • --order reading: force TOP, SIDE, FRONT, BACK. Default matches views by proportion.
  • --round: towers, balloons, pots carve round, not square.
  • --side-nose right: the side view faces right.
  • --colours N: shared palette size, 0 keeps every colour.
  • --normals path.png: save a matching 3D normal-map slice strip.
  • --emissive path.png: save an auto-detected emissive mask strip (headlights, windows, neon).

Viewer

--html writes a standalone page:

  • Modes: Turntable, Scene (Living Diorama with Neon Street and Meadow Island procedural stacked props, unified Y-sorting, and multi-PNG drop / + Add Prop), Slice scan, Exploded view, and Play mode (Drive with WASD/arrows + drift across infinite Street/Meadow/Grid worlds, Wind sway, Shatter & rebuild).
  • Lighting & Weather: Live Time of Day (Day → Sunset → Night with auto-emissive glow and ground light pools), draggable sun (Shift+drag) with projected 3D shadows, and Weather (Rain with pixel streaks, ground ripples, and wavy upside-down wet reflections; Snow with real-time snow cap accumulation on upward-facing voxels via normZ).
  • Performance: Vectorized NumPy carving, zero-allocation typed-array software rasterizer, and angle/lighting-keyed prop sprite caching (~0.2–1.5 ms/frame in Chrome).
  • Export: 16-direction baked PNG sprite sheet export. skills/sprite-stacking/scripts/viewer.html also opens on its own and accepts dropped slice strips.

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

// faq

What is sprite-stacking?

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 is open-source on GitHub.

Is sprite-stacking free to use?

sprite-stacking is open-source under the MIT license, so it is free to use.

What category does sprite-stacking belong to?

sprite-stacking is listed under skills in the Claudeers registry of Claude-compatible tools.

0 views
★ 113 stars
unclaimed
updated about 7 hours ago

// embed badge

sprite-stacking on Claudeers
[![Claudeers](https://claudeers.com/api/badge/sprite-stacking.svg)](https://claudeers.com/sprite-stacking)

// retro hit counter

sprite-stacking hit counter
[![Hits](https://claudeers.com/api/counter/sprite-stacking.svg)](https://claudeers.com/sprite-stacking)

// reviews

// guestbook

0/500

// related in Claude Skills

🔓

An agentic skills framework & software development methodology that works.

// skillsobra/⟨Shell⟩★ 314,126◷ MIT[ claude ]
🔓

Public repository for Agent Skills

// skillsanthropics/⟨Python⟩★ 188,182[ claude ]
🔓

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// skillsGraphify-Labs/⟨Python⟩★ 149,064◷ MIT[ claude ]
🔓

💫 Toolkit to help you get started with Spec-Driven Development

// skillsgithub/⟨Python⟩★ 148,200◷ MIT[ claude ]
→ see how sprite-stacking connects across the ecosystem