lucymhdavies / egg-game

Live. Bounce. Die. Repeat.
https://labs.lmhd.me/egg
3 stars 0 forks source link

Save Game State #4

Open lucymhdavies opened 5 years ago

lucymhdavies commented 5 years ago

Save game state between sessions.

Especially important for the iOS JS version, which resets entirely when you switch between apps.

Needs to be done in a platform-independent way. For example, something like https://github.com/go-humble/locstor may work in JS, but probably not when running natively on macOS (or Linux, or Windows, or iOS Native, or... you get the point).

lucymhdavies commented 5 years ago

Yep, https://github.com/go-humble/locstor works well in play.jsgo.io, but doesn't work locally, so this would need a wrapper library.