Map size and camera bounds

This commit is contained in:
gamer147
2026-04-07 07:41:43 -04:00
parent b086c7d181
commit 344efee7b4
4 changed files with 16 additions and 0 deletions

View File

@@ -112,6 +112,12 @@ func draw_room_walls() -> void:
wall_renderer.draw_walls_for_layout(map_layout)
func get_map_rect() -> Rect2:
if not map_layout:
return Rect2()
return Rect2(Vector2.ZERO, Vector2(map_layout.size) * TILE_SIZE)
func load_from_layout() -> void:
if not map_layout:
return