Chapter     16

Keeping Score

To this point in the book, many problems have been addressed pertaining to Android game development. From moving characters to collision detection, your game should be shaping up nicely. However, one fundamental problem has yet to be addressed: how do you keep score?

Scoring is an integral part of most games. Without a score, the player would have no way to determine how well they are progressing in the game and no way to compare their progress with that of other players. From the earliest days of video games, scores have been the center of many players’ bragging rights.

In this chapter, I will present solutions to some common problems related to keeping the score in a game. The solutions should be adaptable to most ...

Get Android Game Recipes: A Problem-Solution Approach 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.