Skip to content
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

Figure out save serialization #9

Open
thuiop opened this issue Aug 27, 2024 · 3 comments
Open

Figure out save serialization #9

thuiop opened this issue Aug 27, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@thuiop
Copy link
Owner

thuiop commented Aug 27, 2024

Currently everything is stored in cookies, which is not ideal. It would be better to serialize it into a single string (base64 ?), which could be used to export the save. It would also allow to have multiple saves.

@thuiop thuiop added the enhancement New feature or request label Aug 27, 2024
@thuiop
Copy link
Owner Author

thuiop commented Aug 30, 2024

#24 partially implements it; the format is simply stringified JSON so there is probably a better way to serialize it, especially if it is to be exported.

@thuiop
Copy link
Owner Author

thuiop commented Aug 30, 2024

Also, achievements are currently tied to a save. We should figure out a way to make them persistent.

@thuiop
Copy link
Owner Author

thuiop commented Nov 7, 2024

Also see #81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant