Compose vessels from definitions and capabilities
This commit is contained in:
parent
0504b24d8d
commit
14081ad230
39 changed files with 705 additions and 386 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue