darthdeus / comfy

Comfy is a fun 2D game engine built in Rust. It's designed to be opinionated, productive, and easy to use.

Home Page:https://comfyengine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Easy Save"

darthdeus opened this issue · comments

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.