Placement and platforms
This commit is contained in:
parent
a2164dca72
commit
d37c4ec858
31 changed files with 351 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue