Add visual indicator for used slots, reset player position to the middle of slot platform on slot reset
This commit is contained in:
parent
c6b91c31f2
commit
4f96c1f0a3
2 changed files with 14 additions and 1 deletions
|
@ -75,6 +75,9 @@ func reset_slot(idx: int):
|
|||
if FileAccess.file_exists(slot_path):
|
||||
DirAccess.remove_absolute(slot_path)
|
||||
|
||||
func is_slot_used(idx: int):
|
||||
return FileAccess.file_exists("user://slot%s.save" % idx)
|
||||
|
||||
#
|
||||
|
||||
func quit(code: int):
|
||||
|
|
Reference in a new issue