forked from team-sg/hero-mark-2
good job!
This commit is contained in:
parent
e310f9b1ee
commit
08da671afa
7 changed files with 131 additions and 17 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue