Expand and stage boss encounter
This commit is contained in:
parent
c325501999
commit
66b314f51a
17 changed files with 485 additions and 64 deletions
|
|
@ -33,6 +33,11 @@ func _process(_delta: float) -> void:
|
|||
laid_out = true
|
||||
var encounter: Node = surface.get_node("SurfaceFeatures/BossEncounter")
|
||||
var boss: Node2D = encounter.get_node("Boss")
|
||||
encounter.begin_reveal()
|
||||
encounter._process(encounter.REVEAL_SECONDS + 0.1)
|
||||
var fleet: Node2D = surface.get_node("Fleet")
|
||||
fleet.teleport_to(boss.global_position + Vector2(0.0, 780.0))
|
||||
surface.get_node("Camera2D").global_position = fleet.get_centroid()
|
||||
boss.wave_timer = 999.0
|
||||
boss.laser_timer = 999.0
|
||||
for i in range(3):
|
||||
|
|
@ -44,6 +49,8 @@ func _process(_delta: float) -> void:
|
|||
boss.open_next_eye()
|
||||
boss.spawn_wave()
|
||||
for minion in get_tree().get_nodes_in_group("boss_minions"):
|
||||
# Let the authored expulsion fan complete before freezing the gallery.
|
||||
minion._physics_process(0.65)
|
||||
minion.speed = 0.0
|
||||
minion.acceleration = 0.0
|
||||
boss.laser_charge_time = 999.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue