Question

Recently I mentioned on cocos2dx and was confused slightly.

So now I'm going to make a cocos2dx project(i.e. with the Visual Studio 2XXX on Windows). Then can I make the mobile version(i.e. iOS or Android) from that project? Is this possible?

I used Unity3d, and it actually supports One project->Multiplatform. I used cocos2d, and I used to add each library or source for each platform.

So now I think cocos2dx is the expansion of cocos2d, so I must manipulate project for each platform.

Please let me explain about this problem.

Thanks.

Was it helpful?

Solution

technically you should create muti project for muti platform , and each project share the same c++ code , but only the code wrote with cocos2dx's api .

and you have to wrote different code for different platform to start the game , which I call it Entry code.

but cocos2dx provides some tools , such as create_project.py , to help you to do with these mess , so we can only concentrated on games it self.

but we still have to compile on each platform .

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top