Pages

Showing posts with label android game development using cocos2d-x. Show all posts
Showing posts with label android game development using cocos2d-x. Show all posts

Cocos2dx: Combine iOS and Android Project Files

Wednesday, March 27, 2013

In the previous two tutorials I have discussed on setting up Cocos2d-x environment for both iOS and Android.  So, now we have two project structure, one for iOS and another fore Android. In this tutorial I will discuss on how to combine this two project and develop the game in Cocos2d-x using the same code base and structure.

Both iOS and Android project source directory consists of C++ files and these files are located under the "Classes" directory. Open the project explorer and you will find this two identical folder.



So, we can use the same files for developing two different game application by linking the files. To do so, open up your SampleGame project in Xcode. Select the Classes group, click Delete, and select “Move to Trash” when the popup appears.

Setting up Cocos2d-x for Android Game Development

Tuesday, March 26, 2013

As cocos2d-x is ported to C++, now you can develop game for both iOS and Android platform. In the previous tutorial I have discussed on how to setting up cocos2d-x game engine in OSX for iOS game development. Now, in this tutorial I will discuss on Android game development using cocos2d-x.

This tutorial asumes that you have a fully functional Android development environment using Eclipse IDE and Android SDK. If you do not, please go through  "Setting up Android Development Environment"  from Android Official Developers Site first, which provides a step by step procedure on setting up a dedicated Android Application Development environment and install various prerequisite softwares.