O'Reilly logo

Monkey Game Development by Michael Hartlef

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

Dealing with the high-score list

We have a nice feature in the game, the high-score list. Let's see how we can manage it.

Loading and saving the list

You have created the high-score screen just recently. So, how do you actually load and save this list, so that it can show the game results over time? Here again, we will make use of code from Chapter 4, Game #3, CometCrusher. These two methods are just copied over.

To load/save a high-score list, we will load/save the state of the game.

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