8. Finishing Touches

You’ve turned Raiders into a functioning game. Players and enemies can be shot and destroyed in a burst of animated pixels, accompanied by a spot sound effect or two. But, at this point Raiders isn’t a finished game. Now, you’ll tweak and tidy your code, and by the end of the chapter, Raiders will be a complete, albeit very small, iOS game.

Building a Scoreboard

Scoring is an essential part of almost all games. The lure of achieving higher and higher points levels really gives a player “something to shoot for.” And nothing spurs that competitive spirit more effectively than a prominently placed scoreboard that tallies points as they are earned.

The Raiders scoreboard will be displayed along the top of the screen (Figure 8.1 ...

Get Building iOS 5 Games: Develop and Design now with O’Reilly online learning.

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