Summary

In this chapter, we looked at our base game engine classes GameController and Actor and learned how to use these classes to create a simple scene exercising our new actor, the power-up. We looked at the protocol Behavior, which provides us with a framework for creating reusable bits of game logic to be applied to our actors. We also consolidated the logic required to render an image-based actor into the class ImageRepresentation. This also set the stage for vector-based actors, which will be discussed in the following chapter.

Get Beginning iOS 5 Games Development: Using the iOS 5 SDK for iPad, iPhone, and iPod Touch 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.