spritecook/claude-plugin/spritecook-use-dual-grid-tilesets
Claude Code and agent skill by spritecook/claude-plugin
- community
Checking that the SKILL.md file is still in the repository.
Implementation guide for using SpriteCook top-down 15-piece tilesets with a dual-grid autotile renderer. Use when explaining or coding how to map a 4x4 15-piece tileset image into terrain using SpriteCook's dual-grid mask system.
Install
npx vskill@latest install spritecook/claude-plugin/spritecook-use-dual-grid-tilesetsSKILL.md
The same SKILL.md was published earlier as spritecook/codex-plugin/spritecook-use-dual-grid-tilesets.
SpriteCook Dual-Grid 15-Piece Tilesets
Use this skill when implementing a top-down 15-piece SpriteCook tileset in a game engine or custom renderer.
This skill is about using a generated tileset. For generation, use spritecook-generate-tilesets.
Concept
A dual-grid tileset stores terrain as logical painted cells, then renders visible tiles between those cells. Each rendered tile is chosen from the four logical cells around it.
For each rendered tile, sample:
- top-left logical cell
- top-right logical cell
- bottom-left logical cell
- bottom-right logical cell
That four-cell pattern becomes a 4-bit mask. The mask chooses one frame from the 4x4 15-piece atlas.
Mask Order
Use SpriteCook's current mask bit order:
Mask 0 renders nothing. Other masks map into the 4x4 atlas through this lookup:
The atlas cell is:
Renderer Pseudocode
Two-Surface Tilesets
Tilesets generated with edges="two_surfaces" (for example grass and water) have a second terrain. The frame lookup never uses atlas frame 12 (column 0, row 3, the bottom-left cell). In a two-surface set that cell holds the full counter-surface tile, such as open water.
Draw the counter surface first, then the masked pieces on top:
Without this base layer, mask 0 areas render transparent and the second terrain disappears. For a single-surface (transparent edges) set, that cell is empty; skip the base layer.
Practical Notes
- Render one more tile column and row than the logical map size because rendered tiles sit around painted logical cells.
- For pixel art, disable smoothing and use nearest-neighbor scaling.
- Treat mask
15as the filled interior tile and mask0as transparent/no draw. In a two-surface set, mask0shows the counter-surface base layer. - Paint a test map before shipping a set. If the full tile (mask
15) doesn't wrap, large filled areas show a visible checkerboard. - Use the generated atlas exactly as a 4x4 grid of equal tile-sized cells.
- Do not reinterpret the sheet as a normal 8-neighbor blob tileset; this mapping is specifically SpriteCook's dual-grid 15-piece layout.
Security
- Security scanPassed, 98 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/spritecook-use-dual-grid-tilesets/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/spritecook/claude-plugin/spritecook-use-dual-grid-tilesets)