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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.176.166