Compose buildings from definitions and capabilities

This commit is contained in:
Loïc Wisniewski 2026-08-14 21:44:28 +02:00
commit 0504b24d8d
46 changed files with 1091 additions and 878 deletions

14
CrafterBuildingVisual.gd Normal file
View file

@ -0,0 +1,14 @@
extends "res://BuildingVisualBase.gd"
func _ready() -> void:
for part in SHIP_PARTS:
_hull_parts.append(PackedVector2Array(part.points))
_build_crafter_pieces()
queue_redraw()
func apply_animation() -> void:
_animate_crafter()
func _draw() -> void:
register_draw()
_draw_crafter_static(self)