Gameplay changes

This commit is contained in:
2026-03-12 15:57:15 -04:00
parent 3a744290eb
commit 6d11481ce8
7 changed files with 223 additions and 13 deletions
+5 -1
View File
@@ -50,8 +50,12 @@ func play(sound_name: String) -> void:
push_warning("AudioManager: Unknown sound '%s'" % sound_name)
return
var stream = _sounds[sound_name]
if stream == null:
return # File doesn't exist yet, skip silently
var player := _pool[_pool_index]
_pool_index = (_pool_index + 1) % POOL_SIZE
player.stream = _sounds[sound_name]
player.stream = stream
player.play()