However, this comes up with certain issues we'l have to address in the future:
Everyone can edit this file to artificially inflate their achievements with ease [^1].
Each time someone upgrades their version of the project, they'd face the risk of losing their data (which is intended to be universal and retro-compatible to all versions, at least by now)
Proposal
Move savedata.json to a user-directory-based location. I already have a PoC in mind, so I might describe it on a further comment.
Alternatives
Keep as-is, as always :man_shrugging:
[^1]: However, this is useful for testing purposes. But maybe we can do exactly the same with an even more proper method, rather than just opening a text editor :)
The problem
Currently, our saving data (including checkpoints and saved coins) are stored in a
savedata.json
file in the main project dir:https://github.com/DiddiLeija/diddi-and-eli/blob/7bdfeb482367cc984ec5b6d884be1ce8f18f358f/savedata.json#L1
However, this comes up with certain issues we'l have to address in the future:
Proposal
Move
savedata.json
to a user-directory-based location. I already have a PoC in mind, so I might describe it on a further comment.Alternatives
Keep as-is, as always :man_shrugging:
[^1]: However, this is useful for testing purposes. But maybe we can do exactly the same with an even more proper method, rather than just opening a text editor :)