Just a quick update, I managed to port all of Ray Wenderlich‘s absolutely awesome tutorials to Cocos2D-x.

The sources are available on GitHub as follows:

The code should work flawlessly on the iPhone, however the apps crash when being run on Android. My theory is that it has something to do with the SimpleSoundEngine. I will get back to this once I get some time to spare on it and my Cocos2D-x debug skills improve.

Over the next few days, as time permits, I will attempt to port over the How To Make a Tile Based Game tutorial.

Update: found the problem with the Android builds! I forgot to add a NULL terminator to a sequence of actions:
Before:

target->runAction(CCSequence::actions(actionMove, actionMoveDone));

After:

target->runAction(CCSequence::actions(actionMove, actionMoveDone, NULL));

The weird thing is that the code above worked flawlessly on the iPhone, but only crashed when being run on Android.

Cheers!

Share this article

Tagged on:     

6 thoughts on “Ray Wenderlich’s Simple iPhone Games with Cocos2D available for Cocos2D-x

Leave a Reply

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

Email
Print