Server-Backed Persistence: Pirate's Ledger

Professor Parse

In this chapter, you'll keep score in Pirate's Ledger, a game that remembers you even on a new device. The big idea is server-backed persistence: an account, saved progress, and a leaderboard, and a game that keeps working even when the server isn't there.

I'm still writing this chapter, step by step. In the meantime, you can play the finished game, and read the code and the assets that make it, so that you can run it and change it yourself.

Play the Game

This game talks to a server, which isn't part of this web page, so you'll need to run the server yourself to play.

The code that makes it:

The assets, which go in an assets folder next to the game: