no more zombie save files
This commit is contained in:
parent
f97c611b61
commit
4a3f1a7ac3
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,7 @@ func select() -> void:
|
||||||
dir.remove(file.file_path)
|
dir.remove(file.file_path)
|
||||||
splatter.emitting = true
|
splatter.emitting = true
|
||||||
Audio.play_sound(Audio.a_die,Audio.ac_die)
|
Audio.play_sound(Audio.a_die,Audio.ac_die)
|
||||||
|
file = null
|
||||||
refresh()
|
refresh()
|
||||||
|
|
||||||
|
|
||||||
|
@ -59,5 +60,6 @@ func refresh():
|
||||||
$"%TimeCounter".text = "%02d:%02d" % [file.play_time / 3600.0, fmod(file.play_time / 60.0, 60.0)]
|
$"%TimeCounter".text = "%02d:%02d" % [file.play_time / 3600.0, fmod(file.play_time / 60.0, 60.0)]
|
||||||
$"%Difficulty".text = Game.DIFFICULTY_NAMES[file.difficulty]
|
$"%Difficulty".text = Game.DIFFICULTY_NAMES[file.difficulty]
|
||||||
else:
|
else:
|
||||||
|
file = null
|
||||||
$FileExists.visible = false
|
$FileExists.visible = false
|
||||||
$FileDoesNotExist.visible = true
|
$FileDoesNotExist.visible = true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue