{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/6902","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/6902/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/6902/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/6902/events","html_url":"https://github.com/godotengine/godot/issues/6902","id":184660677,"number":6902,"title":"Feature Request: TileMap improvements","user":{"login":"Norrolith","id":9922379,"avatar_url":"https://avatars.githubusercontent.com/u/9922379?v=3","gravatar_id":"","url":"https://api.github.com/users/Norrolith","html_url":"https://github.com/Norrolith","followers_url":"https://api.github.com/users/Norrolith/followers","following_url":"https://api.github.com/users/Norrolith/following{/other_user}","gists_url":"https://api.github.com/users/Norrolith/gists{/gist_id}","starred_url":"https://api.github.com/users/Norrolith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Norrolith/subscriptions","organizations_url":"https://api.github.com/users/Norrolith/orgs","repos_url":"https://api.github.com/users/Norrolith/repos","events_url":"https://api.github.com/users/Norrolith/events{/privacy}","received_events_url":"https://api.github.com/users/Norrolith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-22T23:19:32Z","updated_at":"2016-10-25T18:41:42Z","closed_at":null,"body":"I would like to request a few simple-ish functions for the tilemap class, based on my dabbling with procedural levels.\r\n\r\nget_extents():\r\nReturns a rect2 or similar structure that contains the space occupied by non-empty cells. This should be fairly easy to do at at base level, and spares having to write something to loop through all of get_used_cells.\r\n\r\nflood_cellsv( vector2 position, tile ID to flood fill, optional array of tile ids which block the flood fill):\r\nflood fills an area from code with the tile id, starting at the vector2 position, the optional array when not present would default to anything other than -1\r\n\r\nfind_connected( Vector2 position, array of blocking tile IDs):\r\nBreadth-first-Searches the tilemap, starting at the vector position provided, and constrained by the array of tile IDs. Returns an array of reachable positions.\r\n\r\noverlay_tilemap(Vector2 position, node)\r\nTakes the node, which should be a tilemap with the same tileset and copies it into the calling tilemap, not adding or deleting anything under empty cells in the copied map.\r\n\r\nA chunk of these are maybe a little too specific, but I want to open up some thought about what a few underlying tools could be used for.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/256133822","html_url":"https://github.com/godotengine/godot/issues/6902#issuecomment-256133822","issue_url":"https://api.github.com/repos/godotengine/godot/issues/6902","id":256133822,"user":{"login":"Zylann","id":1311555,"avatar_url":"https://avatars.githubusercontent.com/u/1311555?v=3","gravatar_id":"","url":"https://api.github.com/users/Zylann","html_url":"https://github.com/Zylann","followers_url":"https://api.github.com/users/Zylann/followers","following_url":"https://api.github.com/users/Zylann/following{/other_user}","gists_url":"https://api.github.com/users/Zylann/gists{/gist_id}","starred_url":"https://api.github.com/users/Zylann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zylann/subscriptions","organizations_url":"https://api.github.com/users/Zylann/orgs","repos_url":"https://api.github.com/users/Zylann/repos","events_url":"https://api.github.com/users/Zylann/events{/privacy}","received_events_url":"https://api.github.com/users/Zylann/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T18:41:42Z","updated_at":"2016-10-25T18:41:42Z","body":"Godot has no \"grid\" data structure, only specified classes having grid access (Image, Tilemap, Gridmap...). Grids I worked on were pure GDScript."}}
{"actor":{"display_login":"Zylann"}}