In the past I’ve mentioned the Cocos2D-X open source project. For those unfamiliar with Cocos2D-X, Cocos2D-X is a cross-platfrom C++ implementation of the Cocos2D engine for creation of games that can run on iOS, Android, Windows, and others from a single code base.
One developer has been nice enough to convert several Cocos2D tutorials to Cocos2D-X so that you can take a look at the C++ code on yourself. They’ve included all the Android build files and Xcode project files so you should be able to get things running quickly on iOS and Android devices.
Here’s a list of the tutorials and the related Cocos2D-X source code on Github:
Simple iPhone Game – SimpleGameCocos2D-x
Simple iPhone Game 2 – SimpleGamePart2Cocos2D-x
Simple iPhone Game 3 – SimpleGamePart3Cocos2D-x
Tile Based Game – TileBasedGameCocos2D-x
On the Cocos2D-X project website they’ve also just posted a couple of videos detailing the process of setting up Cocos2D-X on the Mac for Android and iOS.
Should make for a good starting point for those looking to create cross-platform games or who would just prefer to use C++ over Objective-C.
Submit A Resource
Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?
You can submit the url here.
The resources we feel will appeal to our readers the most will be posted on the front page.