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, ...

Get Swift Game Programming for Absolute Beginners 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.