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.

image

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


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
$19