I'm using a global variable to detect what level the user is on. When then close the game and re open it... will the variable still be the same value? Or is there a way to save?
An example I made for someone else should help you..
Use webstorage ! Check out the manual ... And no it won't save the variable automatically ...
Develop games in your browser. Powerful, performant & highly capable.
Thank you both! Will web storage saving work on mobile devices as well?
Can't see why not. Haven't messed with mobile devices so can't answer 100%, but I'm 99% sure ;p