
godot-tilemap-mastery
Expert blueprint for TileMapLayer and TileSet systems for efficient 2D level design. Covers terrain autotiling, physics layers, custom data, navigation integration, and runtime manipulation. Use when building grid-based levels OR implementing destructible tiles. Keywords TileMapLayer, TileSet, terrain, autotiling, atlas, physics layer, custom data.
- Installs
- 458
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/thedivergentai/game-dev-agentic-skills --skill godot-tilemap-mastery- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads godot-tilemap-mastery automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
NEVER Do in TileMaps
- NEVER call
set_cell()in huge loops without batching — Prefer terrain connect, patterns, or chunk batchers. - NEVER forget
source_idinset_cell— Wrong overload → crash or silent miss. - NEVER mix world coords with tile coords — Always
local_to_map/map_to_local. - NEVER hand-paint organic blobs when terrains exist — Use terrain sets +
set_cells_terrain_connect. - NEVER put dynamic actors in the TileMap — Enemies/pickups are nodes; tiles are geometry / destructible cells.
- NEVER spam
get_cell_tile_data()every physics frame — Cache metadata (fast_metadata_cache.gd).
Decision Tree: How to Write Cells
| Goal | Prefer | Script | Trade-off |
|---|---|---|---|
| Organic ground / roads / rivers | Terrain autotile | terrain_autotile.gd / terrain_path_painter.gd | Setup cost in TileSet; fastest designer iteration |
| Prefab rooms / houses / stamps | TileMapPattern | tile_pattern_stamper.gd | Great for procgen pieces; less flexible per-cell |
| Sparse / precise edits | set_cell | — | Fine for few cells; bad for thousands/frame |
| Huge streaming worlds | Chunks | tilemap_chunking.gd / procedural_chunk_batcher.gd / tilemap_data_manager.gd | Indirection + load boundaries |
| Destructible dig/break | Custom data HP | destructible_tile_logic.gd | Must refresh nav/physics after edits |
| Gameplay queries (friction/hazard) | Custom data + cache | gameplay_data_query.gd / fast_metadata_cache.gd | Cache invalidation on set_cell |
| Nav after edits | Runtime nav fix | nav_mesh_teleport_fix.gd | Costly if every cell; batch rebuilds |
| One-way / physics layers | TileSet physics | physics_shape_interaction.gd | Align with CharacterBody masks |
| Iso / multi-floor sort | Y-sort layers | sorting_Z_layering.gd | Parent + all layers need y_sort |
| Legacy TileMap → layers | Migration | tilemap_layer_v43_upgrade.gd | One-time upgrade aid |
Editor atlas/physics paint setup: Official Documentation in Reference — Do NOT reload Steps 1–3 / flood_fill tutorials from this skill body.
Available Scripts (single index + MANDATORY triggers)
| Task | MANDATORY script(s) |
|---|---|
| Serialize / large world data | tilemap_data_manager.gd |
| Runtime terrain paths | terrain_path_painter.gd / terrain_autotile.gd |
| Destructible tiles | destructible_tile_logic.gd |
| Custom data gameplay reads | gameplay_data_query.gd (+ fast_metadata_cache.gd if hot) |
| Procedural bulk place | procedural_chunk_batcher.gd |
| Chunk stream in/out | tilemap_chunking.gd |
| Pattern stamp prefabs | tile_pattern_stamper.gd |
| Nav repair after edits | nav_mesh_teleport_fix.gd |
| One-way / physics layer ops | physics_shape_interaction.gd |
| Y-sort / Z layering | sorting_Z_layering.gd |
| 4.3+ multi-layer upgrade | tilemap_layer_v43_upgrade.gd |
Expert Trade-offs (routing only)
- Isometric Y-sort: enable
y_sort_enabledon parent and each TileMapLayer; tuney_sort_originon tall tiles — see sorting_Z_layering.gd. - Procgen: stamp patterns or batch terrain; avoid per-cell
set_cellstorms — tile_pattern_stamper.gd / procedural_chunk_batcher.gd. - Diff / save deltas: compare
get_used_cells()source_id/atlas between layers; persist deltas via tilemap_data_manager.gd rather than full maps when possible.
Deep recipes (on demand)
LLM-ignorance rule: if a general agent would not know it before reading, it lives here or in
scripts/— never delete, only move.
| Topic | Reference |
|---|---|
| TileSet editor steps | tileset-editor-setup.md |
| Runtime APIs + flood/terrain | runtime-tile-patterns.md |
| Iso / patterns / diff | expert-tilemap-architectures.md |
Reference
Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.
Official Documentation
- Using TileMaps — TileMapLayer workflow, layers, runtime
set_cell/ terrain painting, and when multiple layers beat a single legacy TileMap. - Using TileSets — atlas sources, terrains, physics/navigation/custom data layers painted in the TileSet editor.
- TileMapLayer — cell APIs, terrain connect, patterns, coordinate conversion, and runtime tile-data updates.
- TileSet — physics/terrain/custom-data layer definitions shared by every TileMapLayer that references the resource.
- TileSetAtlasSource — atlas grid, alternatives, and per-tile TileData that drive collision and metadata.
- TileData — custom data, physics polygons, navigation polygons, and
y_sort_originused at query time. - TileMapPattern — capture/stamp multi-tile prefabs without per-cell
set_cellloops. - Collision shapes (2D) — shape choices and one-way collision patterns that TileSet physics layers expose to CharacterBody2D.
- Navigation introduction (2D) — how tile navigation polygons feed NavigationRegion2D / NavigationAgent2D after edits.
- Canvas layers — z-index / CanvasLayer separation for ground, decoration, and roof TileMapLayers.
- Background loading — threaded ResourceLoader patterns for streaming chunk TileSets / tilemap scenes without hitch spikes.
Related Skills
Prerequisites
- godot-project-foundations — scene tree, resources, and import layout before authoring TileSet atlases and multi-layer level scenes.
- godot-gdscript-mastery — typed Vector2i APIs, caching patterns, and signal-up/call-down structure used in runtime tile managers.
- godot-2d-physics — collision layers/masks and StaticBody2D-equivalent behavior that TileMapLayer physics layers participate in.
Complements
- godot-version-migration —
tilemap_layer_v43_upgradeand TileMap→TileMapLayer sit on the 4.x hop path; run engine upgrades via the migration hub before applying layer scripts. - godot-characterbody-2d —
move_and_slideagainst tile colliders, one-way platforms, and floor/wall queries over TileMapLayer geometry. - godot-navigation-pathfinding — NavigationAgent2D / region updates when destructible or procedural tiles change walkable polygons.
- godot-camera-systems — Camera2D limits and follow radii that drive chunk load/unload around the player.
- godot-adapt-3d-to-2d — isometric / Y-sort depth tricks that pair with
TILE_SHAPE_ISOMETRICand multi-floor TileMapLayers. - godot-scene-management — packing and swapping chunk scenes so large tile worlds stream without orphaned layers.
- godot-performance-optimization — batching, cache budgets, and profiler checks when
set_cell/ custom-data queries dominate frame time.
Downstream / consumers
- godot-procedural-generation — noise/BSP/WFC generators that write cells via terrain connect, patterns, or chunk batchers.
- godot-genre-platformer — precision platformer levels built from TileSet physics, one-ways, and hazard custom data.
- godot-genre-metroidvania — interconnected room grids, ability gates, and map revelation layered on TileMapLayer chunks.
- godot-genre-sandbox — diggable/buildable 2D worlds that treat TileMapLayer as the editable terrain backend.
- godot-monte-carlo-balancer — simulate hazard density, destructible HP, and traversal cost encoded in tile custom data before shipping maps.
Master
- godot-master — library router and mirrored module entry for cross-skill discovery.
FAQ
What does the godot-tilemap-mastery skill do?
Expert blueprint for TileMapLayer and TileSet systems for efficient 2D level design. Covers terrain autotiling, physics layers, custom data, navigation integration, and runtime manipulation. Use when building grid-based levels OR implementing destructible tiles. Keywords TileMapLayer, TileSet, terrain, autotiling, atlas, physics layer, custom data.
How do I install godot-tilemap-mastery?
Run npx skills add https://github.com/thedivergentai/game-dev-agentic-skills --skill godot-tilemap-mastery in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/godot-tilemap-mastery/ (personal) or .claude/skills/godot-tilemap-mastery/ (project).
Which AI agents can use godot-tilemap-mastery?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is godot-tilemap-mastery safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains godot-tilemap-mastery?
It is published by thedivergentai in thedivergentai/game-dev-agentic-skills. It has 458 recorded installs.
More from thedivergentai/game-dev-agentic-skills
godot-master
thedivergentai/game-dev-agentic-skills
Consolidated expert library for professional Godot 4.7+ game and application development. Orchestrates 92 Domain Skills through architectural workflows, anti-pattern catalogs, performance budgets, and Server API patterns. Use when: (1) starting a new Godot project, (2) designing game or app architecture, (3) building entity/component systems, (4) debugging performance or physics issues, (5) choosing between 2D/3D approaches, (6) implementing multiplayer, (7) optimizing draw calls or script time, (8) porting between platforms, (9) migrating from 4.6 to 4.7. Primary entry point for ALL Godot development tasks. Keywords: Godot 4.7, AreaLight3D, HDR, Asset Store, godot-master.
godot-shaders-basics
thedivergentai/game-dev-agentic-skills
Expert Godot shader patterns for batch-safe hitflash, alpha-scissor foliage/dissolve, screenspace postFX, depth reconstruction, triplanar, and instance uniforms — not first-shader tutorials. Trigger on draw-call batching breaks, discard vs depth-prepass, foliage shadows, post-process quads, or world-position FX. Keywords: instance uniform, ALPHASCISSOR, hintscreentexture, hintdepthtexture, global uniform, sampler2DArray, canvasitem, spatial, post-processing.
godot-2d-animation
thedivergentai/game-dev-agentic-skills
Expert patterns for 2D animation in Godot using AnimatedSprite2D and skeletal cutout rigs. Use when implementing sprite frame animations, procedural animation (squash/stretch), cutout bone hierarchies, or frame-perfect timing systems. Trigger keywords: AnimatedSprite2D, SpriteFrames, animationfinished, animationlooped, framechanged, frameprogress, setframeandprogress, cutout animation, skeletal 2D, Bone2D, procedural animation, animation state machine, advance(0).
godot-ui-theming
thedivergentai/game-dev-agentic-skills
Expert blueprint for UI themes using Theme resources, StyleBoxes, custom fonts, and theme overrides for consistent visual styling. Covers StyleBoxFlat/Texture, theme inheritance, dynamic theme switching, and font variations. Use when implementing consistent UI styling OR supporting multiple themes. Keywords Theme, StyleBox, StyleBoxFlat, addthemeoverride, font, theme inheritance, dark mode.
godot-gdscript-mastery
thedivergentai/game-dev-agentic-skills
Expert GDScript landmine guidance: static typing opcodes, signal-up/call-down, %UniqueName/@onready lifecycle, Callable bind/unbind, await sequences, typed collections, and safe Dictionary iteration. Use for code review, refactoring hot paths, or project standards. Trigger keywords: statictyping, signalarchitecture, uniquenodes, @onready, classname, signalupcalldown, Callable.bind, typedcollections, awaitsequence.
godot-particles
thedivergentai/game-dev-agentic-skills
Expert blueprint for GPU particle systems (explosions, magic effects, weather, trails) using GPUParticles2D/3D, ParticleProcessMaterial, gradients, sub-emitters, and custom shaders. Use when creating VFX, environmental effects, or visual feedback. Keywords GPUParticles2D, ParticleProcessMaterial, emissionshape, colorramp, subemitter, oneshot.
Popular education & science skills
teach
mattpocock/skills
Teach the user a new skill or concept, within this workspace.
scaffold-exercises
mattpocock/skills
Create exercise directory structures with sections, problems, solutions, and explainers that pass linting. Use when user wants to scaffold exercises, create exercise stubs, or set up a new course section.
paper-context-resolver
lllllllama/rigorpilot-skills
Rigor Paper Context helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacing README guidance by default.
caveman-learn
juliusbrussee/caveman
Act on a Caveman learn report - review the ranked token sinks, apply cost-lowering fixes with per-edit consent, and report what those fixes returned. Use when asked to lower an agent's token cost, what caveman has saved, to trim a heavy CLAUDE.md, or to offload re-pasted context into cavemem.
gsap-plugins
greensock/gsap-skills
Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.
teach-impeccable
pbakaus/impeccable
DEPRECATED: Use /impeccable teach instead. This command has been folded into the impeccable skill.