extends Node2D # Reuse the same room art at low opacity; this layer has no input handlers. const PixelArt := preload("res://scripts/ui/pixel_tower_art.gd") var rooms: Array[Dictionary] = [] var pixel_scale := 1.0 var dungeon: Texture2D var town: Texture2D func _ready() -> void: modulate = Color(1,1,1,0.22) texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST func _draw() -> void: for room: Dictionary in rooms: if bool(room.get(&"building", false)): continue if bool(room.get(&"legacy_stair", false)): PixelArt.stairs(self,room[&"rect"],room[&"rect"].size.x/14.0,true,true) continue PixelArt.room(self,room[&"rect"],room[&"definition_id"],pixel_scale,dungeon,town,true,room[&"origin_x"],{})