Chapter    22

The Main Game Structure

In this chapter, you will lay out the framework for the Tick Tick game. Because of all the work you’ve done for the previous games, you can rely on a lot of preexisting classes. This means you already have a basic design for handling game states and settings, a hierarchy of game objects, and more. Note that the Tick Tick game is not designed to work on very small devices such as the older iPhones, nor the iPhone 6 Plus (for which you would need 3x resolution images anyway). If you run the game on older iPhones, a big part of the game world will be clipped. On the iPhone 6 Plus, the game is playable, but some black space will appear at the borders.

Overview of the Game Structure

This game follows a structure ...

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.