A Fork of 2048 With Dropbox Sync
The game 2048 has proven to be a popular distraction, and at Dropbox we found ourselves playing it frequently. To put the time to good use, we forked the original open-source code on GitHub and integrated the Dropbox Datastore API to add two new capabilities: saving an in-progress game and tracking high scores.
Our version, Dropbox 2048, persists your game state so you can start a game on one device and continue it on another. It also records your top three scores along with the highest tile value for each. This makes it easy to switch between computers and phones without losing progress or bragging rights.
Game Data in the User's Dropbox
The Datastore API handles the persistence layer for user game data. A key detail is that the API stores this data in the user's own Dropbox account. When you connect Dropbox 2048 to your account, your game data will be visible in the Datastore browser within your Dropbox.
The ability to persist data opens up many more possibilities for expanding the game. Since the project is a fork, you're welcome to build on it as well. The code is available on GitHub — an "undo" feature would be a nice addition.
Note: The Sync and Datastore SDK has since been deprecated. More information is available in the deprecation announcement.



