level select and save improvments

- level select starts on the stage you just came from
- default time from save file is INF, so any actual time will get saved
- INF renders as "-:--:--" to indicate a time has not been set
This commit is contained in:
Haze Weathers 2023-01-27 11:12:48 -05:00
parent 12825c3e61
commit 076a91b43b
3 changed files with 8 additions and 6 deletions

View file

@ -15,10 +15,10 @@ func get_level_data(save_id):
return {
# any% score and time
score_any = file.get_value(save_id, "score_any", 0),
time_any = file.get_value(save_id, "time_any", 0),
time_any = file.get_value(save_id, "time_any", INF),
# 100% score and time
score_100 = file.get_value(save_id, "score_100", 0),
time_100 = file.get_value(save_id, "time_100", 0),
time_100 = file.get_value(save_id, "time_100", INF),
shards = shards
}