A short tutorial and demo game showing how to load and save player progress with Local Storage.

Posted on 19th Jul 2019. Follow @phaser_ and get the Phaser World newsletter.


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

Learn to code and lead your intrepid crew on a mission to save The Cloud in TwilioQuest, a PC role-playing game inspired by classics of the 16-bit era. Free forever, and available now for Windows, Mac, and Linux.

The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
  • By Emanuele Feronato
  • 155 Pages
  • 28 Source Code Examples
  • Build a complete game from start to finish
  • Cross Platform
  • Scaling for devices
Buy Now