godot-audio
Installation
SKILL.md
Audio in Godot
Patterns for game audio implementation.
AudioStreamPlayer Hierarchy
Godot provides separate nodes for 2D and 3D audio:
# 2D audio — attached near the sound source
# AudioStreamPlayer2D (auto-pans based on position relative to AudioListener2D)
var sfx_player = AudioStreamPlayer2D.new()
sfx_player.stream = preload("res://sounds/footstep.ogg")
add_child(sfx_player)
sfx_player.play()