How to keep your games maintainable and easy to update. In part three add code to load and save user settings via sponsor storage APIs.

Posted on 6th Aug 2019. Follow @phaser_ and get the Phaser World newsletter.


SBC Games wrote a series of tutorials on building games that are easy to maintain: "Many tutorials show you how to build a game. Let’s say, you already have one. And because it is good and catchy, sponsors are interested in it. Your nice and clean code is step by step polluted with sponsor specific APIs.

In this part of series, we will add code to save and load user settings. In browser you can use LocalStorage for this. But we will think ahead a little and prepare our saving/loading infrastructure for other types of storages. Some game sponsors have their own storage and we also want to work, for example, with Facebook Instant games API."

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