O'Reilly logo

Building iOS 5 Games: Develop and Design by James Sugrue

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4. Controllers and Sprites

In this chapter you will be introduced to the classes that combine to form the foundation of the game engine. Then, you’ll create the sprite classes that draw and control the game characters on the screen.

Beginning with this chapter, you’ll be dealing with a lot of code. Instead of writing the code from scratch, you can follow along with the completed code by downloading it from the book’s website, www.peachpit.com/iOSGames. While examining the code, it will be useful to identify the key sections and to understand their purpose.

Understanding Controllers

You learned a bit about controllers in the previous chapter. In Raiders, controllers are classes that manage the game flow, and are responsible for rendering scenes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required