Part    III

Tut’s Tomb

Tut’s Tomb is a game where the player has to collect treasures of the Pharaoh Tut (see Figure III-1 for a screenshot). All kinds of treasures fall down in the tomb, and by dragging treasures that are the same towards each other, you collect them and get points. Watch out, though: if a treasure stays in the tomb too long, it turns into a useless rock that takes up space. The treasures keep falling down faster and faster. If you don’t remove enough treasures from the tomb, the tomb will be completely filled and the game is over. In the following chapters, you will develop this game. If you want to play the complete version to get a feel for how the game works, run the example belonging to Chapter 16!

Figure III-1. A screenshot ...

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.