Chapter 7. Creating Save Files in Unity

Now that we've created a series of projects in Unity, we have a firm foundation on what works and what doesn't. But right now, every time the game is over and you start again, you lose everything.

Project overview

In this chapter, we are going to add in functionality to some of our previously created games, adding in high scores and even an in-game level editor, which can be used for future projects.

Your objectives

This project will be split into a number of tasks. It will be a simple step-by-step process from beginning to end. Here is the outline of our tasks:

  • Saving a high score
  • Level editor – introduction
  • Adding/removing walls at runtime
  • Toggling editor, GUI, and selecting additional tiles
  • Saving/loading levels ...

Get Unity Game Development Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.