[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79MDBQPJV58R3Q4JRC0JH5W":3,"skill-same:01M79MDBQPJV58R3Q4JRC0JH5W":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79MDBQPJV58R3Q4JRC0JH5W","godot-tilemap",null,"Build and edit tile-based 2D levels in Godot 4.3+ with TileMapLayer and TileSet: paint layers, set up collision\u002Fnavigation\u002Fcustom-data on tiles, autotile with terrain sets, and read\u002Fwrite cells from code (set_cell, get_cell_tile_data, local_to_map). Use when working with TileMapLayer nodes, .tres TileSets, autotiling, or migrating a deprecated TileMap node to TileMapLayer.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-tilemap\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: godot-tilemap\ndescription: >\n  Build and edit tile-based 2D levels in Godot 4.3+ with TileMapLayer and TileSet:\n  paint layers, set up collision\u002Fnavigation\u002Fcustom-data on tiles, autotile with\n  terrain sets, and read\u002Fwrite cells from code (set_cell, get_cell_tile_data,\n  local_to_map). Use when working with TileMapLayer nodes, .tres TileSets, autotiling,\n  or migrating a deprecated TileMap node to TileMapLayer.\nlicense: Apache-2.0\ncompatibility: Godot 4.3+ (TileMapLayer; TileMap node deprecated)\nmetadata:\n  engine: godot\n  category: godot\n  difficulty: intermediate\n---\n\n# Godot TileMap (4.3+ TileMapLayer)\n\nAuthor tile-based levels with `TileMapLayer` + `TileSet`, add per-tile collision and\ncustom data, autotile with terrains, and manipulate cells at runtime. Targets\n**Godot 4.3+**, where `TileMapLayer` replaces the now-deprecated `TileMap` node.\n\n## When to use\n\n- Use when designing 2D levels from a tile grid, configuring a `TileSet` (collision,\n  navigation, custom data, terrains), or reading\u002Fwriting tiles from code.\n- Use when migrating a `TileMap` node (single node, many layers) to multiple\n  `TileMapLayer` nodes (one layer each).\n\n**When *not* to use:** moving the player across the tiles → `godot-2d-movement`; general\nphysics bodies\u002Fraycasts → `godot-physics`; procedural map *generation* algorithms →\n`procedural-gen`; level *design* practice → `level-design`.\n\n## Core workflow\n\n1. **Add a `TileMapLayer` node** (one per visual\u002Flogical layer: background, walls,\n   foreground). Each holds exactly one layer of tiles.\n2. **Create or assign a `TileSet`** on the layer's `tile_set` property. Add an atlas\n   source (a texture sliced into tiles) in the TileSet editor. Save the TileSet as an\n   external `.tres` so multiple layers\u002Flevels reuse it.\n3. **Add tile data in the TileSet editor:** physics layers (collision polygons),\n   navigation layers, occlusion, and **custom data layers** (typed per-tile values like\n   `damage` or `is_ladder`).\n4. **Paint** in the TileMap bottom panel (Paint\u002FLine\u002FRectangle\u002FBucket). For self-\n   connecting tiles, define a **terrain set** and paint with Connect\u002FPath mode.\n5. **Enable per-layer collision\u002Fnavigation** via the layer's `collision_enabled` \u002F\n   `navigation_enabled` properties.\n6. **Read\u002Fwrite from code** with `local_to_map`, `set_cell`, `get_cell_source_id`, and\n   `get_cell_tile_data(...).get_custom_data(...)`.\n\n## Patterns\n\n### 1. Convert mouse position to a cell and read its custom data\n\n```gdscript\nextends TileMapLayer\n\nfunc _unhandled_input(event: InputEvent) -> void:\n    if event is InputEventMouseButton and event.pressed:\n        # local_to_map expects local coords; convert from global first.\n        var cell := local_to_map(to_local(event.position))\n        var data := get_cell_tile_data(cell)   # TileData or null\n        if data:\n            var dmg: int = data.get_custom_data(\"damage\")  # custom data layer\n            print(\"Cell %s deals %d damage\" % [cell, dmg])\n```\n\n### 2. Place and erase tiles at runtime\n\n```gdscript\n# set_cell(coords, source_id, atlas_coords, alternative_tile = 0)\nfunc place_wall(cell: Vector2i) -> void:\n    set_cell(cell, 0, Vector2i(2, 1))   # source 0, atlas tile at column 2, row 1\n\nfunc dig(cell: Vector2i) -> void:\n    erase_cell(cell)                    # same as set_cell(cell, -1)\n\nfunc clear_level() -> void:\n    clear()                             # remove every tile on this layer\n```\n\n### 3. Autotiling a region with a terrain set\n\n```gdscript\n# Paint a filled area with terrain `terrain` of terrain set `terrain_set`;\n# Godot picks the correct edge\u002Fcorner tiles to connect them.\nfunc fill_with_grass(cells: Array[Vector2i]) -> void:\n    var terrain_set := 0\n    var grass_terrain := 0\n    set_cells_terrain_connect(cells, terrain_set, grass_terrain, true)\n```\n\n### 4. Iterate placed tiles (e.g. find all spawn tiles)\n\n```gdscript\nfunc find_spawns() -> Array[Vector2i]:\n    var spawns: Array[Vector2i] = []\n    for cell in get_used_cells():\n        var data := get_cell_tile_data(cell)\n        if data and data.get_custom_data(\"is_spawn\"):\n            spawns.append(cell)\n    return spawns\n```\n\n## Pitfalls\n\n- **`TileMap` node is deprecated in 4.3.** Use `TileMapLayer` nodes (one layer per node);\n  group them under a parent `Node2D`. Old `TileMap` calls that took a `layer` argument\n  (`set_cell(layer, ...)`) do not apply to `TileMapLayer`.\n- **`local_to_map` needs local coordinates.** Mouse\u002Fglobal positions must be converted\n  with `to_local(...)` first, or cells will be offset.\n- **`get_cell_tile_data` returns `null`** for empty cells or non-atlas sources — always\n  null-check before `get_custom_data`.\n- **Custom data is typed.** A layer declared as `int` returns `int`; reading it as the\n  wrong type or referencing a non-existent layer name errors. Define the layer in the\n  TileSet first.\n- **Terrains need every combination defined.** `set_cells_terrain_connect` produces odd\n  results if the TileSet's terrain bitmask peering is incomplete.\n- **Runtime edits are batched** to end-of-frame. If you must read updated internals\n  immediately after `set_cell`, call `update_internals()` (expensive — avoid in loops).\n- **Collision not working?** Check the layer's `collision_enabled`, that the tile has a\n  physics layer with a polygon, and that the TileSet's physics layer mask matches your\n  bodies.\n\n## References\n\n- For TileSet setup (atlas sources, physics\u002Fnavigation\u002Fcustom-data layers, terrain\n  bitmasks), scene tiles, Y-sorting, and runtime tile-data overrides\n  (`_use_tile_data_runtime_update`), read `references\u002Ftileset-and-terrains.md`.\n\n## Related skills\n\n- `godot-2d-movement` — characters that walk on these tiles.\n- `godot-physics` — collision layers\u002Fmasks the tile collisions participate in.\n- `procedural-gen` — generating tilemaps from noise\u002FRNG.\n- `level-design` \u002F `roguelike` — design practice and grid-based genres.\n","# Godot TileMap (4.3+ TileMapLayer)\n\nAuthor tile-based levels with `TileMapLayer` + `TileSet`, add per-tile collision and\ncustom data, autotile with terrains, and manipulate cells at runtime. Targets\n**Godot 4.3+**, where `TileMapLayer` replaces the now-deprecated `TileMap` node.\n\n## When to use\n\n- Use when designing 2D levels from a tile grid, configuring a `TileSet` (collision,\n  navigation, custom data, terrains), or reading\u002Fwriting tiles from code.\n- Use when migrating a `TileMap` node (single node, many layers) to multiple\n  `TileMapLayer` nodes (one layer each).\n\n**When *not* to use:** moving the player across the tiles → `godot-2d-movement`; general\nphysics bodies\u002Fraycasts → `godot-physics`; procedural map *generation* algorithms →\n`procedural-gen`; level *design* practice → `level-design`.\n\n## Core workflow\n\n1. **Add a `TileMapLayer` node** (one per visual\u002Flogical layer: background, walls,\n   foreground). Each holds exactly one layer of tiles.\n2. **Create or assign a `TileSet`** on the layer's `tile_set` property. Add an atlas\n   source (a texture sliced into tiles) in the TileSet editor. Save the TileSet as an\n   external `.tres` so multiple layers\u002Flevels reuse it.\n3. **Add tile data in the TileSet editor:** physics layers (collision polygons),\n   navigation layers, occlusion, and **custom data layers** (typed per-tile values like\n   `damage` or `is_ladder`).\n4. **Paint** in the TileMap bottom panel (Paint\u002FLine\u002FRectangle\u002FBucket). For self-\n   connecting tiles, define a **terrain set** and paint with Connect\u002FPath mode.\n5. **Enable per-layer collision\u002Fnavigation** via the layer's `collision_enabled` \u002F\n   `navigation_enabled` properties.\n6. **Read\u002Fwrite from code** with `local_to_map`, `set_cell`, `get_cell_source_id`, and\n   `get_cell_tile_data(...).get_custom_data(...)`.\n\n## Patterns\n\n### 1. Convert mouse position to a cell and read its custom data\n\n```gdscript\nextends TileMapLayer\n\nfunc _unhandled_input(event: InputEvent) -> void:\n    if event is InputEventMouseButton and event.pressed:\n        # local_to_map expects local coords; convert from global first.\n        var cell := local_to_map(to_local(event.position))\n        var data := get_cell_tile_data(cell)   # TileData or null\n        if data:\n            var dmg: int = data.get_custom_data(\"damage\")  # custom data layer\n            print(\"Cell %s deals %d damage\" % [cell, dmg])\n```\n\n### 2. Place and erase tiles at runtime\n\n```gdscript\n# set_cell(coords, source_id, atlas_coords, alternative_tile = 0)\nfunc place_wall(cell: Vector2i) -> void:\n    set_cell(cell, 0, Vector2i(2, 1))   # source 0, atlas tile at column 2, row 1\n\nfunc dig(cell: Vector2i) -> void:\n    erase_cell(cell)                    # same as set_cell(cell, -1)\n\nfunc clear_level() -> void:\n    clear()                             # remove every tile on this layer\n```\n\n### 3. Autotiling a region with a terrain set\n\n```gdscript\n# Paint a filled area with terrain `terrain` of terrain set `terrain_set`;\n# Godot picks the correct edge\u002Fcorner tiles to connect them.\nfunc fill_with_grass(cells: Array[Vector2i]) -> void:\n    var terrain_set := 0\n    var grass_terrain := 0\n    set_cells_terrain_connect(cells, terrain_set, grass_terrain, true)\n```\n\n### 4. Iterate placed tiles (e.g. find all spawn tiles)\n\n```gdscript\nfunc find_spawns() -> Array[Vector2i]:\n    var spawns: Array[Vector2i] = []\n    for cell in get_used_cells():\n        var data := get_cell_tile_data(cell)\n        if data and data.get_custom_data(\"is_spawn\"):\n            spawns.append(cell)\n    return spawns\n```\n\n## Pitfalls\n\n- **`TileMap` node is deprecated in 4.3.** Use `TileMapLayer` nodes (one layer per node);\n  group them under a parent `Node2D`. Old `TileMap` calls that took a `layer` argument\n  (`set_cell(layer, ...)`) do not apply to `TileMapLayer`.\n- **`local_to_map` needs local coordinates.** Mouse\u002Fglobal positions must be converted\n  with `to_local(...)` first, or cells will be offset.\n- **`get_cell_tile_data` returns `null`** for empty cells or non-atlas sources — always\n  null-check before `get_custom_data`.\n- **Custom data is typed.** A layer declared as `int` returns `int`; reading it as the\n  wrong type or referencing a non-existent layer name errors. Define the layer in the\n  TileSet first.\n- **Terrains need every combination defined.** `set_cells_terrain_connect` produces odd\n  results if the TileSet's terrain bitmask peering is incomplete.\n- **Runtime edits are batched** to end-of-frame. If you must read updated internals\n  immediately after `set_cell`, call `update_internals()` (expensive — avoid in loops).\n- **Collision not working?** Check the layer's `collision_enabled`, that the tile has a\n  physics layer with a polygon, and that the TileSet's physics layer mask matches your\n  bodies.\n\n## References\n\n- For TileSet setup (atlas sources, physics\u002Fnavigation\u002Fcustom-data layers, terrain\n  bitmasks), scene tiles, Y-sorting, and runtime tile-data overrides\n  (`_use_tile_data_runtime_update`), read `references\u002Ftileset-and-terrains.md`.\n\n## Related skills\n\n- `godot-2d-movement` — characters that walk on these tiles.\n- `godot-physics` — collision layers\u002Fmasks the tile collisions participate in.\n- `procedural-gen` — generating tilemaps from noise\u002FRNG.\n- `level-design` \u002F `roguelike` — design practice and grid-based genres.\n",{"name":5,"license":15,"metadata":24,"description":27,"compatibility":28},{"engine":25,"category":25,"difficulty":26},"godot","intermediate","Build and edit tile-based 2D levels in Godot 4.3+ with TileMapLayer and TileSet: paint layers, set up collision\u002Fnavigation\u002Fcustom-data on tiles, autotile with terrain sets, and read\u002Fwrite cells from code (set_cell, get_cell_tile_data, local_to_map). Use when working with TileMapLayer nodes, .tres TileSets, autotiling, or migrating a deprecated TileMap node to TileMapLayer.\n","Godot 4.3+ (TileMapLayer; TileMap node deprecated)","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mistervaibhav\u002Fskills --skill godot-tilemap",{"tool":41,"command":42},"bunx","bunx skills add mistervaibhav\u002Fskills --skill godot-tilemap",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill godot-tilemap","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-tilemap\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Ftileset-and-terrains.md","REFERENCE","参考文档",4095,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-tilemap\u002Freferences\u002Ftileset-and-terrains.md",[56,64,72,80,87,94],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]