O'Reilly logo

GameMaker Programming By Example by Steven Isaacs, Brian Christian

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 5. Saving and Loading Data

In this chapter, you will add a lot of functionality to your previous games. This includes implementing a score system and displaying the score with the use of fancier sprite fonts, saving a highscore to a .ini file, which you can then load into your game to show the highscore across playthroughs, as well as allowing the player to change their keyboard configurations for this game, which will then also be saved and loaded. We'll also encrypt the data inside the .ini file, after the basics of saving the highscore to it are finished. Using .ini files is actually a simple process, as you will see when we get to that part in the chapter.

Putting in a scoring system

For this chapter, you can just work in your previous ...

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