Cocos2d-x C++ Port of Cocos2d for iOS, Android, Desktop

cocos2d-x is the natural evolution of the cocos2d-iphone engine to C++ and it is stable and producing multiplatform games.

cocos2d-iphone is a great Objective-C game engine (and the first really) that began as a python engine called cocos2d and was ported to Objective-C + iOS early on in the iPhone SDK days.  Arguably Unity and cocos2d are the two biggest indie engines on the App store.  Cocos2D is a very simple engine and coming from Flash development many of the concepts are similar (i.e. Sprite, Actions/easing, Layers/Scenes (although slightly different), etc).  But getting your Objective-C game to Android and other platforms is not a fun task. There are other options like andengine for android from cocos2d port but each port only gets you so far as you still have two codebases for one game on iOS and Android.

Unity obviously can open up platforms for you but cocos2D-x can also do that for 2D games across iOS, Android, Blackberry Playbook, Windows, Linux and more! This is possible because like oolong engine and other custom multiplatform engines for mobile the core is in C++ with presentation view wrappers/stubs in Objective-C++/C for iOS, Java/C++/NDK for Android, etc. The list of games shows that it is stable and a well treaded engine including games like Hero Academy from Robot Entertainment.

cocos2D-x even has a port of cocos to C#/XNA for Windows Phone development using all the classes you know and love from cocos2d. That is actually pretty sweet to have similar logic to reach Windows Phone (Unity and others bypass because there is no native access by developers sadly still, must, use, XNA — strange considering Unity pushes C# development quite heavily but I digress).

drawlogic originally mentioned cocos2d-x over a year ago in a post about cocos2d-javascript just in an ‘other ports’ category but it has really come along and is quite stable as the game lists are showing. Take it for a spin if you need a cross platform 2D game! If I need to work on cocos2D games I would definitely go with the C++/Objective-C++ engine since it is now stable and gets you many platforms, I also still like developing in C++ which is very common in games for performance and multiplatform performance especially.

Other mentions

Tags: , , , , , , , , ,

  • Tyson Ross

    +1 for Cocos2d-x! I ported my Cocos2d-x across iPad, Android and Playbook very easily. The only hard part was configuring all the IDE/compiler environments.

    Hoping when the NDK for the Windows Phone hits with Tango, they’ll target it natively also.

    • Ryan Christensen

      Agreed on both fronts.  

      cocos2d-x like any C++ project takes a little more setup but once you are rolling there are no walls.The Tango NDK for Windows Phone will finally make the platform one to develop for, excited for that. There will definitely be a porting great wave that will hit when that happens.

  • Pingback: flash games, flash games, mini games, rpg games, action games, micro games, adventure games, puzzle games, casino games,

  • Pingback: Mini Zombie Games

  • Zoomerland

    Can anyone say how can I port win32 proj to android proj on cocos2d-x ver.2 in Windows 7 64x?

  • hallet biran

    Hey ,

    I see website and its impressive.I wonder if the content or banners advertising options available on your site ?

    What will be the price if we would like to put an article on your site?

    Note : Article must not be any text like sponsored or advertise or like that


    hallet biran