[agent:claude-cli] feat(audio): système audio complet — swim loop, boost, block break, echo ping, pearl collect, mort/respawn, deep sea ambient (placeholders AudioStreamGenerator si .ogg absent)

This commit is contained in:
2026-04-21 08:38:59 +00:00
parent 2e4d697977
commit 2c49e0c9db
4 changed files with 230 additions and 11 deletions

View File

@@ -58,5 +58,8 @@ func _on_body_entered(body: Node) -> void:
return
if body.is_in_group("player"):
_collected = true
var am: Node = get_node_or_null("/root/AudioManager")
if am != null and am.has_method("play_pearl_collect"):
am.call("play_pearl_collect", global_position)
collected.emit(ITEM_ID_PEARL)
queue_free()