jsnes-web icon indicating copy to clipboard operation
jsnes-web copied to clipboard

Support saving game state

Open bfirsh opened this issue 6 years ago • 4 comments

Dump snapshot of whole emulator to JSON and restore. See https://github.com/bfirsh/jsnes/issues/16 for existing issue and https://github.com/bfirsh/jsnes/pull/42 for existing implementation. Not to be confused with #17 which is built-in save game support.

Simplest implementation of this is to just restore previously saved game, but it could potentially keep several save games too.

bfirsh avatar Sep 11 '17 06:09 bfirsh

Maybe enabling people to use their Nextcloud would be cool. :) Then people can save states permanently.

It's a simple WebDAV api, or you can use the webdav-fs library: https://nextcloud.com/blog/using-webdav-fs-to-access-files-in-nextcloud/

jancborchardt avatar Sep 13 '17 17:09 jancborchardt

is save state has been implemented?

oknoorap avatar Nov 07 '17 05:11 oknoorap

Some interesting discussion of graphics glitches (perhaps broken serialisation?) here: https://github.com/bfirsh/jsnes/issues/16

bfirsh avatar Dec 29 '17 09:12 bfirsh

The load state graphic glitch is not an issue with the web UI project but rather the nes.fromJSON method itself. I fixed it in that repo: https://github.com/bfirsh/jsnes/pull/397

JoeMeeks avatar Aug 21 '21 21:08 JoeMeeks