-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serialize/deserialize player data to/from JSON #107
Comments
Hey! |
The save file is small (see the example in the issue) and the keys are predefined, however developers might add more keys in the future if we add more player attributes, so the code implementation should be flexible enough to support that. |
hey i want to work on this is the enhancement open? |
@pallavi267 yup it's open! |
Please assign it to me, i want to do this. |
Currently we save player data by writing raw values line-by-line in
data.txt
. It looks something like this:We'd like to change the player data parsing code so that it supports reading from and writing to
data.txt
in JSON format, which should be changed to look something like this:This way it is much clearer what the player's attributes are by looking at
data.txt
.Feel free to use a JSON parsing library, though preferably it should be lightweight and header-only!
The text was updated successfully, but these errors were encountered: