initial demo work

This commit is contained in:
Haze Weathers 2023-12-24 23:52:16 -05:00
parent e9583ecada
commit 917a725655
4 changed files with 16 additions and 142 deletions

View file

@ -148,11 +148,11 @@ var current_file: SaveFile = null
func _ready() -> void:
# TODO: make load last played file
current_file = load_file("user://file%d.pr" % Options.last_file)
current_file = load_file("user://demo_save.pr")
if current_file:
Game.difficulty = current_file.difficulty
else:
current_file = SaveFile.new("user://testing.pr")
current_file = SaveFile.new("user://demo_save.pr")
## shortcut for loading a save file from specific path
func load_file(path: String) -> SaveFile: