image

Dynetis Games writes: "This short tutorial and the demo that goes with it illustrate how you can save player progress in your Phaser 3 game using localStorage. That is, how to make sure that your players can leave the game, shut down their browser, then come back to it and resume seamlessly from where they left.

The demo used to illustrate this tutorial consists in a small clicker game, where you earn points by clicking on the Phaser logo. Your score is saved, allowing you to leave, come back and resume from where you left. In addition, your number of visits to the game is saved as well, in order to illustrate the concepts with more than one example. It’s obviously not a very interesting game but its simplicity allows to focus on the saving and loading of the data."

Read More