Audio manager implementation

This commit is contained in:
2026-03-11 10:07:47 -04:00
parent e11eddf1b4
commit ed4359686c
23 changed files with 61 additions and 7 deletions
+1
View File
@@ -24,5 +24,6 @@ func _physics_process(delta: float) -> void:
func _on_body_entered(body: Node) -> void:
if body.is_in_group("player"):
AudioManager.play("pickup_scrap")
RunManager.earn_credits(value)
queue_free()
+1
View File
@@ -86,6 +86,7 @@ func get_slow_factor() -> float:
func take_damage(amount: float) -> void:
current_health -= amount
_flash_timer = 0.1
AudioManager.play("enemy_hit")
if current_health <= 0.0:
_die()