Local Saving and Itch Desktop App Compatibility
Saving and loading are now also supported in the itch desktop app.
I did some research, and it turns out that the itch desktop app downloads the HTML and javascript files, and runs them locally, (rather than from the server.) This allows you to play your downloaded games even when offline.
The template can now detect whether the user is playing via server or locally, (but storing and then retrieving a test cookie.) If the user is local, the game will populate some additional save/load buttons to the page, which can allow the user to manually download/upload a save file. The server-based autosave is more convenient, but this is the tradeoff when developing mobile/web/local-compatible apps with vanilla js.
Files
Get State-Based HTML5 Itch Template
State-Based HTML5 Itch Template
A quick-and-dirty HTML5/javascript itch-friendly game template.
Status | Prototype |
Category | Tool |
Author | TurdBoomerang |
More posts
- Clickable ImagesApr 30, 2022
- Audio Support in Desktop AppApr 25, 2022
- Saving and Loading is now supportedApr 23, 2022
- Audio SupportApr 22, 2022
Leave a comment
Log in with itch.io to leave a comment.