DiddiLeija / diddi-and-eli

Diddi and Eli: a platformer game with scaling challenges.
MIT License
2 stars 0 forks source link

Feat: Better filesaving system #11

Open DiddiLeija opened 1 week ago

DiddiLeija commented 1 week ago

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 :)