Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Cocos2D is one of the best known and most utilized gaming libraries for the iPhone, iPad, and Mac. It is completely open source and free to use. If you are building a 2D iPhone game and need the power of OpenGL, then this is the library to learn. In this lesson, we will take the starting template provided by Cocos2D and create a game called Nuclear Fallout where you drive a tank to avoid lots of radioactive material falling from the sky. You will learn how to animate sprites, play sound effects and background music, create particle systems for cool explosion effects, and utilize touch and accelerometer controls. We'll also discuss how to optimize our game to increase frame rates.

Subscriber Reviews

Average Rating: 4.5 out of 5 rating Based on 4 Ratings

"It's an intro" - by Anonymous on 11-DEC-2011
Reviewer Rating: 1 star rating2 star rating3 star rating4 star rating5 star rating
This leaves out a lot of details of Cocos2d. Animation sequences, menu's, callbacks, scene changing... I'm new to cocos2d so I can't give an accurate estimate, and this video did give me useful stuff I have yet to read, but it doesn't tap into Cocos2d's action, node, physics, etc. I just see the title "OpenGL iPhone Games" and expected something comprehensive.

Good tips, good video. A bit slow/repetitive, but for-sure easy to follow. Thanks.

Report as Inappropriate

Table of Contents



Reinventing a Classic



Starting From Scratch

Play Video


Mastering Multi-touch



Animating the Puck



Giving the Game a Makeover




The publisher has provided additional content related to this title.


Visit the errata page for OpenGL iPhone Games with Cocos2D

  • Errata

Visit the catalog page for OpenGL iPhone Games with Cocos2D

  • Catalog Page

Download the supplemental electronic content for OpenGL iPhone Games with Cocos2D

  • Supplemental Content