2025-09-18 23:23:57 +02:00
|
|
|
extends Node
|
|
|
|
|
|
|
|
|
|
@export var boss : PackedScene
|
|
|
|
|
|
2025-09-19 15:34:59 +02:00
|
|
|
func _ready() -> void:
|
2025-09-19 15:35:40 +02:00
|
|
|
pass
|
2025-09-18 23:23:57 +02:00
|
|
|
|
|
|
|
|
func _on_water_water_reached_max_height() -> void:
|
2025-10-12 17:17:09 +02:00
|
|
|
# The boss spawns once the water has risen to its maximum height.
|
2025-09-18 23:23:57 +02:00
|
|
|
var node = boss.instantiate()
|
|
|
|
|
add_sibling(node)
|
2025-10-14 14:43:38 +02:00
|
|
|
node.position = %Player.position + %Player.get_node("EarthAligner").up * 1000;
|
2025-09-18 23:23:57 +02:00
|
|
|
queue_free()
|