Creating a cocos2d-x scene in a native iOS project

I have a project where I used cocos2d-iphone, basically the whole project was native, the only screen that was cocos2d was the actual game.

What I’d like to do is keep the project, and port the game to cocos2d-x. I’ve done some searching, and I can’t see any easy way to do this. All the examples I’ve seen have a project that’s 100% cocos2d-x in C++.

Is there any way to do this? If not, how do you include stuff like game center, which is all objective-c/swift?

The basic concepts of cocos2d-iphone like scenes, transitions and stuff like that are still the same in cocos2d-x. However you will have to write the code again in c++.
For including game center etc you can use SDK-Box: http://www.sdkbox.com/integrations

I looked into SDK-box, it seems like it includes google play game services, but not apple game center, is that right?

How about SdkboxPlay Plugin?

1 Like

I think this is what I’m looking for, thanks!

You are welcome! :slight_smile: