Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a cocos2dx-3.0 project in xcode?

I downloaded cocos-2dx 3.0rc and run "setup.py". READ.ME tells that we can use "cocos new" to create a project and "cocos run" to run a project. However, I tried to use xcode to create a new project but I find there is no xcode templates. How can I use xcode to develop cocos2dx-3.0 projects?

like image 525
Dong Avatar asked Mar 16 '14 09:03

Dong


2 Answers

  1. Open Terminal
  2. Run setup.py
  3. Run source /Users/your_user/.profile (so that environment variables are actually updated)
  4. Run cocos new mygame -p com.your_company.mygame -l cpp -d /directory_to_your_game
like image 153
Francis Moy Avatar answered Nov 15 '22 07:11

Francis Moy


  1. run the setup.py (I had problem with python 3.X, so i switched back to python 2.7.6)
  2. open cmd and run the command cocos new MyGame -p com.your_company.mygame -l cpp -d /home

cd ~/home ... you will find your new project.

like image 30
sunny1304 Avatar answered Nov 15 '22 07:11

sunny1304