Chapter     6

Create Your Characters: Game Engine, Image Actors, and Behaviors

In this chapter and the next, we will be creating classes for characters that will be used in the complete game presented in this book. But first, we need to refactor the code from the previous chapters to create reusable classes that make up a simple game engine. We will explore the classes and protocols that make up this game engine so you can understand how they fit together.

We will further abstract how actors are drawn on the screen by introducing the protocol Representation, which will allow us to create image-based actors as well as actors that are programmatically drawn (presented in the following chapter). The protocol Representation will provide us with ...

Get Beginning iOS 6 Games Development 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.