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?
How to create a cocos2dx-3.0 project in xcode?
Asked Answered
- Open Terminal
- Run setup.py
- Run source /Users/your_user/.profile (so that environment variables are actually updated)
- Run cocos new mygame -p com.your_company.mygame -l cpp -d /directory_to_your_game
cocos new my game -p com.your_company.mygame -l cpp -d /directory_to_your_game –
Mite
- run the setup.py (I had problem with python 3.X, so i switched back to python 2.7.6)
- 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.
For cocos2d-x 3.0beta2, the way to create a project is exactly what you say. However, 3.0rc version which released on Mar 15th seems to have totally changed it.@sunny 1304 –
Wadley
@Wadley sorry dude, i have updated the answer, i should be more careful. –
Kedge
© 2022 - 2024 — McMap. All rights reserved.