Placement and platforms

This commit is contained in:
Rendo 2025-10-11 09:45:23 +05:00
commit d37c4ec858
31 changed files with 351 additions and 11 deletions

View file

@ -17,6 +17,10 @@ const GRID_SIZE : Vector2 = Vector2(16,16)
get:
return building_rect
func _ready() -> void:
if not Engine.is_editor_hint():
Registry.build_zones.append(self)
func _draw() -> void:
if Engine.is_editor_hint() and EditorInterface.get_inspector().get_edited_object() == self:
draw_rect(building_rect,Color.CYAN,false,1)