user3401177
user3401177

Reputation: 31

Using Apportable with cocos2d-x

Does anyone have any details on porting a cocos2d-x project using Apportable? It doesn't seem to be as straight forward as porting a cocos2d-iphone project. I have been trying to trick it into thinking it's iOS by changing CCPlatformConfig.h to define CC_TARGET_PLATFORM as CC_PLATFORM_IOS even if the ANDROID flag is set. This doesn't really seem like the right approach to me but if anyone has successfully built a cocos2d-x project using Apportable any help would be appreciated.

Upvotes: 0

Views: 391

Answers (2)

seanxiaoxiao
seanxiaoxiao

Reputation: 1302

I have done some tweaks to make the compilation work between apportable and cocos2d-x. You may find the instruction here http://blog.seanxiao.me/index.php/cocos2d-x-2-3-1-compiling-with-apportable/.

It is just a start but at least it passed the compilation. I will spend some more time working on the runtime issue.

Upvotes: 0

collinjackson
collinjackson

Reputation: 23

This is Collin here from Apportable.

Hero Academy is a cocos2d-x title that used Apportable for Android. You're on the right track, you should make sure that the iOS code paths are compiled and the Android ones aren't. We haven't been testing Apportable with each new release of cocos2d-x, so it's likely that there's some tweaking required to get it to work properly. If you get a cocos2d-x sample app working, let us know and we'll add it to docs.apportable.com!

Upvotes: 2

Related Questions