Create configuration values that allow writing Steam stats at a different frequency than local stats. Count coins collected and unlocked from deprecated progress data, using the quest and arcade bank values. Also count levels unlocked using progress data. Update stat estimation rules so that only stats that are different from their default values end up being written when stats are estimated in the constructor. This ensures that a player with no progress will start with an empty stats file whether or not the program has ever been loaded before. Start tracking an all time bank in the progress JSON. This is used to increment the COINS_UNLOCKED stat, and can also be used in the future to display the player's coin collection. Store a config file in the codebase that can be used on the command line to launch a game with no save progress. Add a function for parsing an arbitrary bank string. Track stats: LEVELS_UNLOCKED, COINS_UNLOCKED, COINS_COLLECTED, STAT_*_DEATHS Test more cases for existing save progress: blank progress, zero arcade bank, zero quest bank
10 lines
274 B
JSON
10 lines
274 B
JSON
{
|
|
"storage":
|
|
{
|
|
"progress file": "/tmp/cakefoot_blank/progress.json",
|
|
"scores file": "/tmp/cakefoot_blank/scores.json",
|
|
"preferences file": "/tmp/cakefoot_blank/preferences.json",
|
|
"stats file": "/tmp/cakefoot_blank/stats.json"
|
|
}
|
|
}
|