added playlist generator

This commit is contained in:
derek
2025-02-26 09:13:00 -06:00
parent c87f22d9e8
commit 1c342ecda7
13 changed files with 257 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ func save_persistent_data():
print("LAST HIT PATH " + str(last_hit_path))
file.store_var(last_hit_path)
file.store_var(player.velocity)
file.store_var(GameGlobals.leaderboard_name)
file.store_var(get_tree().current_scene.scene_file_path)
file.store_var(get_tree().current_scene.gamemode.resource_path)
file.store_var(GameGlobals.money)
@@ -59,6 +60,7 @@ func load_persistent_data():
var file = FileAccess.open(persistent_save_path, FileAccess.READ)
last_hit_path = file.get_var()
player_velocity_cache = file.get_var()
GameGlobals.leaderboard_name = file.get_var()
GameGlobals.current_level = str(file.get_var())
GameGlobals.current_gamemode = file.get_var()
GameGlobals.money = set_nulls_zero(file.get_var())