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
@@ -15,6 +15,7 @@ func _draw() -> void:
func _on_body_entered(body: Node) -> void:
if not body.is_in_group("player") or item == null:
return
AudioManager.play("item_pickup")
RunManager.collect_item(item) # Triggers item_collected signal -> player_stats recalculates
if item.heal_on_pickup > 0.0:
body.stats.heal(item.heal_on_pickup)