O'Reilly logo

Learning Cocos2D: A Hands-On Guide to Building iOS Games with Cocos2D, Box2D, and Chipmunk by Ray Wenderlich, Rod Strougo

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

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 ...

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