in my game i have a start title menu where the player can start from zero "level1" and "continue" from the last saved level.
im lost with the local storage, i have 20 levels at the moment.
in my game everytime the player reach the exit door, the level+life has to be saved, if the player close the app and then restart later, when he click "continue" the game has to restart from the last saved level.
question is: where i have to add the localstorage functions for saving/loading, in the game event sheet, or in the menu event sheet??
thanks for your help