jsnes-web
jsnes-web copied to clipboard
Support saving game state
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.
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/
is save state has been implemented?
Some interesting discussion of graphics glitches (perhaps broken serialisation?) here: https://github.com/bfirsh/jsnes/issues/16
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