[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117249":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":9,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":36,"discoverSource":37},117249,"sprite-stacking","danielwh2\u002Fsprite-stacking","danielwh2","Agent skill: turn four pixel art views into fake-3D sprites you can spin. Works with Claude Code, Codex, Cursor, OpenCode, Gemini CLI, Pi.",null,"HTML",719,50,2,1,0,174,284,632,99.02,"MIT License",false,"main",true,[25,26,27,28,29,30,31,5,32],"agent-skills","claude-code","codex","cursor","fake-3d","gamedev","pixel-art","voxel","2026-11-21 01:28:57","2026-11-23 20:37:41","# sprite-stacking\n\nAn agent skill that turns four pixel art views into fake-3D sprites you can spin. By Daniel White.\n\n![MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicence-MIT-111?style=flat-square)\n![Agent skill](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fagent-skill-111?style=flat-square)\n![Python 3 + Pillow + NumPy](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython%203-Pillow%20%2B%20NumPy-111?style=flat-square)\n![Works with](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fworks%20with-Claude%20Code%20%C2%B7%20Codex%20%C2%B7%20Cursor%20%C2%B7%20OpenCode%20%C2%B7%20Gemini%20CLI%20%C2%B7%20Pi-111?style=flat-square)\n\n![Six sprite-stacked assets spinning](media\u002Fshowcase.gif)\n\n## Install\n\n```bash\nnpx skills add danielwh2\u002Fsprite-stacking\n```\n\nInstalls to the current project. Add `-g` for every project, `-a claude-code` (or `codex`, `cursor`, ...) to pick an agent. Uses the [skills CLI](https:\u002F\u002Fgithub.com\u002Fvercel-labs\u002Fskills), Node 22.20 or later.\n\nOr copy `skills\u002Fsprite-stacking` into your agent's skills folder:\n\n| Agent | Folder |\n| --- | --- |\n| Claude Code | `~\u002F.claude\u002Fskills\u002F` |\n| Codex, Cursor, OpenCode, Gemini CLI, Pi | `~\u002F.agents\u002Fskills\u002F` |\n\n## Use\n\nAsk your agent:\n\n- \"Make a rotatable pixel art car.\"\n- \"Sprite stack this 4-view sheet and give me a turntable.\"\n- \"Add a fake 3D pixel art tree to my Godot game.\"\n\nNo image generator? The agent draws the views itself in a short Python script.\n\n## How it works\n\n![Sheet to slices to render](media\u002Fpipeline.png)\n\n1. **Views:** top, side, front and back, orthographic, one row.\n2. **Carve:** a voxel survives only where all four views cover it.\n3. **Slices:** the volume is cut into a strip of flat layers, ground first.\n4. **Render:** each layer is rotated, squashed for pitch and lifted 1 px.\n\n## Slicer CLI\n\n```bash\npython3 skills\u002Fsprite-stacking\u002Fscripts\u002Fviews_to_slices.py views.png slices.png \\\n  --slices 36 --preview check.png --html viewer.html\n```\n\n- `--slices N`: layer count. 15-20 chunky, 32-48 detailed.\n- `--order reading`: force TOP, SIDE, FRONT, BACK. Default matches views by proportion.\n- `--round`: towers, balloons, pots carve round, not square.\n- `--side-nose right`: the side view faces right.\n- `--colours N`: shared palette size, `0` keeps every colour.\n- `--normals path.png`: save a matching 3D normal-map slice strip.\n- `--emissive path.png`: save an auto-detected emissive mask strip (headlights, windows, neon).\n\n## Viewer\n\n`--html` writes a standalone page:\n- **Modes:** Turntable, **Scene** (Living Diorama with **Neon Street** and **Meadow Island** procedural stacked props, unified Y-sorting, and multi-PNG drop \u002F `+ Add Prop`), Slice scan, Exploded view, and **Play** mode (**Drive** with WASD\u002Farrows + drift across infinite Street\u002FMeadow\u002FGrid worlds, **Wind** sway, **Shatter** & rebuild).\n- **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`).\n- **Performance:** Vectorized NumPy carving, zero-allocation typed-array software rasterizer, and angle\u002Flighting-keyed prop sprite caching (~0.2–1.5 ms\u002Fframe in Chrome).\n- **Export:** 16-direction baked PNG sprite sheet export. `skills\u002Fsprite-stacking\u002Fscripts\u002Fviewer.html` also opens on its own and accepts dropped slice strips.\n\n## Requirements\n\nPython 3 with Pillow and NumPy (`pip install pillow numpy`).\n\n## Contributing\n\n```bash\npython3 tests\u002Fcheck.py\n```\n\nPrints `ok`.\n\n## Prior art\n\nSprite stacking is a long-standing indie game technique, not invented here. This skill adds the four-view carving and the agent workflow.\n\n## Licence\n\nMIT\n","2026-11-24 04:55:09","CREATED_QUERY"]