Chapter 21
Finishing the Penguin Pairs Game
In this chapter, you will finalize the Penguin Pairs game. You will first complete the user interface by adding a hint arrow and a help overlay that is shown for a few seconds when the player starts playing each level. Then, you will learn how to reset and move on to the next level. You will complete the game by adding sound effects.
Showing Hints
In order to finish Penguin Pairs, there are a couple more features to add to the game. As a first step, you want to be able to show a hint when the user taps a button. The hint consists of an orange arrow that is visible for a second. When you load the level in the LevelState initializer, you read the hint position and direction from the text file. Then, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access