O'Reilly logo

Mastering Unity 5.x by Alan Thorn

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7.  Persistent Data - Load and Save Game States

This chapter focuses on persistent data and Serialization generally; specifically, this is about saving and loading information to and from files, whether human-readable text files or encrypted binary files, both online and offline. This process has two especially important functions for games: firstly, save-game states allow the player to save and resume their progress in-game; and secondly, DDD (Data Driven Design) lets developers store huge databases (such as weapon and player stats) in text files and spreadsheets for driving gameplay elements. The first use case interests us here for Dead Keys; allowing the player to save their progress as they move through levels. Let's get started. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required