-
Notifications
You must be signed in to change notification settings - Fork 184
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
Saving Worlds #28
Comments
It may be better to use IndexedDB or WebSQL because localStorage has a 2MB limit ): |
I use a type of thing I call "File-Based Programming" when I write web apps most of the time nowadays. I declare a variable without a value at the beginning of the code. It can be set to a JSON object by opening a new file, or be set to a parsed JSON string file. Save it with JSON.stringify and an "a" element with download attribute and dataURL of the JSON variable. It may be helpful here. |
Good idea... it is same web tech used by Grav a flat-file CMS. |
Is there any way you could save these worlds using the built-in localStorage object in javascript?
The text was updated successfully, but these errors were encountered: