Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save State Nes game #1

Open
yasaricli opened this issue Mar 30, 2015 · 1 comment
Open

Save State Nes game #1

yasaricli opened this issue Mar 30, 2015 · 1 comment
Assignees
Labels

Comments

@yasaricli
Copy link
Owner

if is authenticated then save game.

@yasaricli yasaricli self-assigned this May 27, 2015
@yasaricli
Copy link
Owner Author

Save

var currData = Nes.toJSON();
var saveData = JSON.stringify(currData);

Load

var decodedData = JSON.parse(saveData);
Nes.fromJSON(decodedData);
Nes.start();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant