blob: b61d95419abd20fa900733a208843d254aefe22a (
plain)
1
2
3
4
5
6
7
8
9
10
|
extends TileMapLayer
func get_wall_limits():
return {
"top": (get_used_rect().position.y + 1) * tile_set.tile_size.y,
"bottom": (get_used_rect().position.y + get_used_rect().size.y + 1) * tile_set.tile_size.y,
"left": (get_used_rect().position.x + 1) * tile_set.tile_size.x,
"right": (get_used_rect().position.x + get_used_rect().size.x - 1) * tile_set.tile_size.x,
}
|