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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.