good job!

This commit is contained in:
pennyrigate 2023-09-16 00:50:21 -04:00
parent e310f9b1ee
commit 08da671afa
7 changed files with 131 additions and 17 deletions

View file

@ -32,6 +32,7 @@ const a_confirm = preload("res://audio/sounds/confirm.wav")
const a_bullet_barrage = preload("res://audio/sounds/bullet_barrage.ogg")
const a_rainbow_laser = preload("res://audio/sounds/rainbow_laser.ogg")
const a_spaghetti = preload("res://audio/sounds/spaghetti.ogg")
const a_good_job = preload("res://audio/sounds/good_job.ogg")
#Plays a sound
func play_sound(snd,player):
@ -48,7 +49,10 @@ func play_shard_sound():
var idx = AudioServer.get_bus_index("sound")
AudioServer.set_bus_mute(idx, true)
ac_music.set_stream_paused(true)
play_sound(a_shard,ac_shard)
if Game.deaths == 0:
play_sound(a_good_job,ac_shard)
else:
play_sound(a_shard,ac_shard)
func _on_ShardSound_finished():
var idx = AudioServer.get_bus_index("sound")