Chapter     5

Quickly Build a Frame-by-Frame Game

We have already looked at a simple game where the action is solely driven by user input. In this chapter, we will be looking at games that animate continuously, regardless of whether the user provides input. Action games are typical examples of such games. We are not going to make a full game in this chapter, but will implement part of one. Figure 5-1 shows one of the scenes we will create.

9781430244226_Fig05-01.jpg

Figure 5-1.  A frame-by-frame space game

In Figure 5-1, we see a spaceship dodging some asteroids. You will learn how to animate the different items in the scene, move the ship based on user input, and detect ...

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.