Integrate Cocos2dx project within Swift Project (XCode 6.3)

1k views Asked by At

I have 2 separate Projects one is in Cocos2dx v3.6 and one is in Swift. I want to start a game from the Swift project. How can I do it?

I have copied whole cocos2dx project into my Swift project and then created one View Controller in swift and trying to open CCDirector as a root view of the project. but not able to find director, I am trying to import cocos2dx with this #import "cocos2d.h" , but it is giving me error of "undefined file".

This is how I added Cocos2dx project in my Swift Project

Apple Swift version 1.2

1

There are 1 answers

0
Grigori Jlavyan On

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

Also I suggest you use this tutorial it is very simple todo.