Add visual indicator for used slots, reset player position to the middle of slot platform on slot reset

This commit is contained in:
ChaoticByte 2024-10-02 22:32:07 +02:00
parent c6b91c31f2
commit 4f96c1f0a3
No known key found for this signature in database
2 changed files with 14 additions and 1 deletions

View file

@ -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):