Compose vessels from definitions and capabilities

This commit is contained in:
Loïc Wisniewski 2026-08-14 22:12:57 +02:00
commit 14081ad230
39 changed files with 705 additions and 386 deletions

View file

@ -17,9 +17,9 @@ func _process(_delta: float) -> void:
var node: Node2D = active.get(i)
if node == null or not is_instance_valid(node):
node = delivery_script.new()
node.vessel_type = String(delivery.type)
get_parent().add_child(node)
active[i] = node
node.vessel_type = String(delivery.type)
node.position = pos
var direction: Vector2 = (delivery.to as Vector2) - (delivery.from as Vector2)
if direction.length() > 0.1: