Learn Cocos2D 2nd Edition: What’s New & Release Date

On September 30, 2011, in book, cocos2d, Kobold2D, by Steffen Itterheim

Scheduled for release on November 7th, 2011.

Co-Author: Andreas Löw

I’m proud to have Andreas Löw (@CodeAndWeb) as a co-author for the 2nd Edition of the Learn Cocos2D book! Andreas is the developer of the indispensable Cocos2D (and other game engine) tools TexturePacker and PhysicsEditor.

Andreas volunteered to make all the necessary changes to replace Zwoptex with the more state-of-the-art TexturePacker, and VertexHelper with the much more powerful PhysicsEditor. He also provided the new graphics for the Shoot’em Up and Pinball projects, as well as making them Retina compatible.

New Chapters: UIKit Integration & Kobold2D with Cocos3D

Two entirely new chapters were added to the 2nd edition:

The UIKit Integration chapter not only explains how to add UIKit views to a Cocos2D app. It also shows you how to setup your view hierarchy so that you can add UIKit views both in the foreground and in the background of the Cocos2D OpenGL view. In addition you’ll learn how to perform touch hit testing so that touches are properly propagated from the UIKit views in the foreground, to the Cocos2D nodes, to the UIKit views in the background. And as if that weren’t enough, I’ll show you how to add Cocos2D to an existing UIKit app: how to add the cocos2d sources to your project, how to create the GLView in your nib, how to setup Cocos2D to be cooperative with your UIKit views and finally starting and stopping the Cocos2D renderer.

The Kobold2D chapter is an introduction to Kobold2D with its Lua based startup configuration, streamlined installation and project create & upgrade process, and additional convenience features such as KKInput and better cross-platform (Mac & iOS) support. The Doodle Drop project from Chapter 4 was ported to Kobold2D with a few simple changes thanks to KKInput. I also introduce you to Cocos3D (included in Kobold2D and how easy it is to create an augmented reality app with Cocos3D.

Additional Changes

The entire descriptions, the source code and the figures have all been updated to Cocos2D v1.0.1, Xcode 4, iOS 5.0 and the latest versions of the tools described throughout the book: TexturePacker, PhysicsEditor, Glyph Designer, Particle Designer and Tiled. Learn Cocos2D 2nd Edition is now the most up-to-date book for Cocos2D game development. All the source code projects discussed in the book will continue to be maintained as part of Kobold2D.

Several chapters have been completely overhauled, all erratas have been fixed, and many smaller improvements have been made throughout the book. Your feedback and a very thorough technical and copy-editing review phase have helped to greatly improve the code and a lot of descriptions. Overall the book has now more figures, screenshots and diagrams to illustrate key concepts.

In particular Chapter 3 “Essentials” has been significantly improved to provide an even better introduction for beginners to essential Cocos2D programming topics. Most notably the Cocos2D scene hierarchy and how it works as well as the still-mysterious anchor point have gotten a more in depth treatment. The CCDirector is treated more thoroughly, in particular the director types and its pros and cons are explained as well as best practices for pushing and popping scenes. Keyboard and Mouse event handling for Cocos2D Mac apps has been added. More examples for using a variety of Actions and creating action sequences are present as well.

This article was brought to you by ...

I very much enjoy the learning process, the pushing of boundaries (mine and yours and that of technology), having the freedom to pursue whatever is on my mind, to boldly program what no one has programmed before, and to write about what I've learned. Help me help you by browsing the products in the Learn Cocos2D Store.

16 Responses to “Learn Cocos2D 2nd Edition: What’s New & Release Date”

  1. Nelson says:

    I for one, cannot wait for “Awaiting cover:The true story of the cocos2d journey”

  2. jandujar says:

    Well done!!, next book “Learn Kobol2D”. 😉

  3. moosc says:

    Suggestion, add a chapter about how to make an interactive ebook.
    In the cocos2d forums there a lot of questions about this.


  4. Michael says:

    Well done. I have just pre-ordered in Amazon!

  5. Jack says:

    Hey cool, I downloaded Kobold2d and pre-ordered your new book! But I rather have the digital version of it, when does this come out? Can’t find it on Amazon or Apress. Thx!

    • To be honest I don’t know. My guess is that it’ll take a few more days before a digital version is being offered. The digital download (PDF, Kindle, possibly others) should be available on the release day.

  6. Konstantin says:

    Added to my amazon wishlist for not to forget to buy it :-)

  7. Nick says:

    I’ve bought the first edition and will buy the second the day it comes out on Kindle. Thanks for all your efforts to write the book and also all the work you put into Kobold2D. Just installed it today and migrated my project to it in less than an hour. ARC support rocks!

  8. Matt Revell says:


    Great work with the 1st Edition. Will you be doing a chapter on how to send a tweet with your app using the built in ios5 twitter functionality? Also perhaps demonstrating a way of keeping the Game Center leader boards/achievements in
    landscape mode despite orientation lock etc would also be very beneficial for many users :-) Keep up the good work!


  9. Burak says:


    I’m from Turkey/Istanbul and I want to buy your book as an e-book. Cause when I want to buy it as a paper it takes time. I have no passion for that :)

    I can’t find e-book version of it anywhere.

    Where can I find your e-book ?

    • I would have to say “in the usual places”. I know it’s available on Amazon.de as Kindle version for example. It should also be in iTunes. But it may not be available in all countries. If you can’t find it on Amazon, iTunes or local bookshops, you can also get the eBook directly from Apress: http://www.apress.com/9781430238133 Last time I checked they only offered the PDF version though.