Title screen sounds stop immediately on new game or continue game

This commit is contained in:
Rob Kelly 2025-04-23 12:40:53 -06:00
parent be7b0d4335
commit d644cba3ff

View File

@ -24,11 +24,18 @@ func _ready() -> void:
continue_button.disabled = false
func stop_sounds() -> void:
title_sfx.stop()
title_drone.stop()
func continue_game() -> void:
stop_sounds()
LoadingTools.load_save(save_path)
func new_game() -> void:
stop_sounds()
LoadingTools.load_level(level_scene)
@ -42,5 +49,4 @@ func quit() -> void:
func _exit_tree() -> void:
title_sfx.stop()
title_drone.stop()
stop_sounds()