darthdeus / comfy

Comfy is a fun 2D game engine built in Rust. It's designed to be opinionated, productive, and easy to use.
https://comfyengine.org
Apache License 2.0
678 stars 28 forks source link

"Easy Save" #61

Open darthdeus opened 9 months ago

darthdeus commented 9 months ago

At a high level it would be nice to have something like Easy Save in Unity for storing simple key/value pairs in the right way per platform.

On desktop this would mean in userprofile folders making it easy to work with Steam Cloud Save, on WASM probably something with LocalStorage.

The goal of this isn't to replace nanoserde/serde, but rather just allow doing a "I want to save/load XYZ" without having to care about doing the filesystem part properly. Especially if we'd also do the usual "don't write over existing save files", but instead save to a new file to avoid save corruption, etc.

I'd imagine this would be a separate comfy-save crate that can also be disabled with a feature flag.