Skip to content

adding autosave

jackdarker edited this page Mar 20, 2021 · 1 revision

How to extend the already existing save/load with autosave.

  • extend the Save-Form with an extra save-slot 'Auto'
  • add a call to window.storage.saveBrowser('Auto') whenever you want to do a save, f.e. whenever the wakeup-passage runs
  • keep in mind that saving will be synchronous and block the execution of the game

Clone this wiki locally