Integrate Cocos2dx Project with Swift Project (XCode 6.3)

I have two separate projects, one in Cocos2dx v3.6 and one in Swift. I want to start the game from the Swift project. How can i do this?

I copied the entire cocos2dx project to my Swift project, and then created one View Controller in swift and tried to open CCDirector as the root view of the project. but could not find the director, I'm trying to import cocos2dx with this #import "cocos2d.h" , but it gives me the error "undefined file".

This is how I added the Cocos2dx project to my Swift Project

Apple Swift version 1.2

+6
source share
1 answer

You can use the version of Cocos2d for Swift, it is here. this

I also suggest you use this tutorial , it is very simple to do.

+2
source

All Articles