For the past few weeks I have been steadily porting and posting Cocos2D tutorial code to Cocos2D-x, mostly from Ray Wenderlich‘s awesome tutorials.

You may ask why, what is the purpose of this porting? Well, for once, I believe that having the ability to compare code side-by-side is a great learning tool. Cocos2D developers out there are probably going to find it easier than I did to migrate since they can now compare the final code and see what maps to where.

On the latest roundup, the following projects with Cocos2D-x are available on GitHub:

TutorialGitHub Cocos2D-x Code
How To Make A Simple iPhone Game with Cocos2D TutorialSimpleGameCocos2D-x
Rotating Turrets: How To Make A Simple iPhone Game with Cocos2D Part 2SimpleGamePart2Cocos2D-x
Harder Monsters and More Levels: How To Make A Simple iPhone Game with Cocos2D Part 3SimpleGamePart3Cocos2D-x
How To Make a Tile Based Game with Cocos2DTileBasedGameCocos2D-x
Collisions and Collectables: How To Make a Tile Based Game with Cocos2D Part 2TileBasedGamePart2Cocos2D-x
Enemies and Combat: How to Create a Tile Based Game with Cocos2D Part 3TileBasedGamePart3Cocos2D-x
How To Make a Catapult Shooting Game with Cocos2D and Box2D Part 1CuteAPultCocos2D-x
Multitouch AsteroidsAsteroidsCocos2D-x

I will continue to update this listing as more tutorials get ported. If you would like to see any specific Cocos2D tutorial ported to Cocos2D-x, please let me know in the comments and I will try to make it happen.

What’s next?

I have in plan to port at least one Box2D tutorial, and to tell you the truth, the How To Create A Game Like Tiny Wings tutorial from Ray has been flirting with me for the past few days.

I will also try to outline my impressions so far of working with Cocos2D-x (CCMutableArray, CCMutableDictionary I am looking at you!). There are some good parts, but there also are some serious hurdles that make development less enjoyable than it should be.

Share this article

3 thoughts on “Cocos2D tutorial code ported to Cocos2D-x (roundup)

  • February 28, 2012 at 2:23 am
    Permalink

    very nice set of tutorials!
    thanks for sharing this 😀

    Reply
  • March 8, 2012 at 3:04 pm
    Permalink

    Thank you very much. I’ve been looking for something like this for a while.

    About some specific tutorial I would like to see ported “How To Implement A* Pathfinding with Cocos2D” from Ray tutorials. I think that is awesome but my objc isn’t vey good.

    Reply
  • November 18, 2012 at 11:19 am
    Permalink

    Great job. Keep on! Thanks

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Email
Print