Chapter 4. Your First Game

In this chapter you'll build your first complete game. It won't win any awards, but you'll learn how to get the essential elements of cocos2d to work together. I'll guide you through the individual steps, so you'll also learn a bit about working with Xcode along the way.

The game is the inversion of the famous Doodle Jump game, aptly named Doodle Drop. The player's goal is to avoid falling obstacles for as long as possible by rotating the device to move the player sprite. Take a look at the final version in Figure 4-1 to get an idea of what you'll be creating in this chapter.

The final version of the DoodleDrop game.

Figure 4.1. The final version of the DoodleDrop ...

Get Learn iPhone and iPad cocos2d Game 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.