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:
- How To Make A Simple iPhone Game (Original tutorial)
- Rotating Turrets: How To Make A Simple iPhone Game Part 2 (Original tutorial)
- Harder Monsters and More Levels: How To Make A Simple iPhone Game Part 3 (Original tutorial)
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:
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.