Chapter    7

Keeping Score

In the last chapter, you learned how to implement a basic collision detection system in your Prison Break game. This collision detection system allowed you to test for any collisions between the game ball and the bricks or the paddle. It is now time to add the finishing touch to the game.

Most arcade-style games feature a scoring component. Whether it is a direct score or a ranking that correlates to how a level was finished, the score is what lets the player know how he played compared to other players.

In this chapter, you take a look at two possible ways to keep score in Prison Break. The first method adds a specific number of points to the player’s score for each brick broken. The second method awards the player ...

Get Android Arcade Game App: A Real World Project - Case Study 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.