Wires in new audio sound fxs

This commit is contained in:
2026-03-11 10:23:19 -04:00
parent 309182daeb
commit 8b2e059f07
10 changed files with 21 additions and 0 deletions
+1
View File
@@ -91,6 +91,7 @@ func take_damage(amount: float) -> void:
_die()
func _die() -> void:
AudioManager.play("enemy_death")
_spawn_drop()
queue_free()
+2
View File
@@ -863,6 +863,7 @@ func take_damage(amount: float) -> void:
current_health -= amount
_flash_timer = 0.1
AudioManager.play("enemy_hit")
EventBus.boss_health_changed.emit(maxf(current_health, 0.0), max_health, "THE HIVEMIND")
if current_health <= 0.0:
@@ -907,6 +908,7 @@ func _tick_climax(delta: float) -> void:
func _die() -> void:
AudioManager.play("enemy_death")
_clear_orbiters()
_end_beam()
+2
View File
@@ -369,6 +369,7 @@ func take_damage(amount: float) -> void:
return
current_health -= amount
AudioManager.play("enemy_hit")
EventBus.boss_health_changed.emit(current_health, max_health, "THE RELAY")
if current_health <= 5.0 and _phase != Phase.CLIMAX:
@@ -412,6 +413,7 @@ func _tick_climax(delta: float) -> void:
_die()
func _die() -> void:
AudioManager.play("enemy_death")
EventBus.boss_died.emit()
# Cleanup burst projectiles
+1
View File
@@ -86,6 +86,7 @@ func _do_fire(delta: float) -> void:
_shot_timer = BURST_PAUSE
func _fire_projectile() -> void:
AudioManager.play("enemy_shoot")
var proj = ENEMY_PROJECTILE.instantiate()
proj.position = (get_parent() as Node2D).to_local(global_position)
proj.direction = Vector2.from_angle(_fire_angle)
+2
View File
@@ -370,12 +370,14 @@ func take_damage(amount: float) -> void:
return # already dying
current_health -= amount
_flash_timer = 0.1
AudioManager.play("enemy_hit")
EventBus.boss_health_changed.emit(maxf(current_health, 0.0), max_health, "THE WARDEN")
if current_health <= 0.0:
_enter_climax()
func _die() -> void:
AudioManager.play("enemy_death")
_clear_mines()
for entry in _sweep_projs:
if is_instance_valid(entry["node"]):