- Cocos2d-x by Example:Beginner's Guide(Second Edition)
- Roger Engelbert
- 203字
- 2021-07-23 20:00:26
Time for action – creating your game project
I'll build the game first in Xcode and then show how to take the project to Eclipse, but the folder structure remains the same, so you can work with any IDE you wish and the instructions here will be the same:
- Open the terminal and create a new Cocos2d-x project called
AirHockey
that uses C++ as its main language. I saved mine on the desktop, so the command I had to enter looks like this:cocos new AirHockey -p com.rengelbert.AirHockey -l cpp -d /Users/rengelbert/Desktop/AirHockey
- Once the project is created, navigate to its
proj.ios_mac
folder and double-click on theAirHockey.xcodeproj
file. (For Eclipse, you can follow the same steps we did when we created theHelloWorld
project to import the project.) - Select the top item in Project Navigator and making sure the iOS target is selected, edit the information by navigating to General | Deployment info, setting the target device to iPad and Device Orientation to Portrait and Upside Down.
- Save your project changes.
推薦閱讀
- Boost程序庫完全開發(fā)指南:深入C++”準”標準庫(第5版)
- Java Web基礎與實例教程(第2版·微課版)
- C/C++常用算法手冊(第3版)
- Bootstrap Essentials
- 信息技術應用基礎
- Hands-On Natural Language Processing with Python
- HTML 5與CSS 3權威指南(第3版·上冊)
- Elasticsearch Essentials
- Java Web從入門到精通(第2版)
- Java 從入門到項目實踐(超值版)
- Qt 4開發(fā)實踐
- 軟件設計模式(Java版)
- 信息學奧林匹克競賽初賽精講精練
- Hands-On GUI Application Development in Go
- Python3從入門到實戰(zhàn)