1. Hello, Cocos2D

Cocos2D is incredibly fun and easy to use. In this chapter you will learn how to install Cocos2D, integrate it with Xcode, and make a simple HelloWorld app. You’ll then add a space cargo ship to the app and have it move around the screen, with just a few lines of code, as shown in Figure 1.1.

Figure 1.1. The space cargo ship that you will add to your HelloWorld app

image

After you create this simple app, you will get a chance to go behind the scenes and see how the Cocos2D template code generated for you works and try running the app on your own iPhone or iPad.

Note

It is assumed you have already signed up for Apple’s iPhone Developer ...

Get Learning Cocos2D: A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk 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.