Lamby777 / PETS-G

The official git repo for the work-in-progress game P/E/T/S 2037.
https://sparklet.org/pets
GNU General Public License v3.0
6 stars 2 forks source link

Binary format save files #22

Open Lamby777 opened 1 year ago

Lamby777 commented 1 year ago

This is more of a long-term thing, but save files should be saved/loaded with a binary format to be more efficient. For now, though, they're gonna be JSON or some other human-readable format for easier debugging.

Lamby777 commented 3 months ago

For what it's worth, this also exists for player settings: https://docs.godotengine.org/en/stable/classes/class_configfile.html#class-configfile

So you can separate settings from your save file...

Probably gonna use bincode for serialization just like I did for dg, and then use godot methods to write it to a file. That is, unless I want to support future versions. Probably gonna stick to JSON for a while into development actually, just so old save files continue to somewhat work in new versions.

Lamby777 commented 3 months ago

Yeet. image