- 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.
推薦閱讀
- UML和模式應(yīng)用(原書第3版)
- 精通軟件性能測試與LoadRunner實戰(zhàn)(第2版)
- C語言程序設(shè)計
- Web全棧工程師的自我修養(yǎng)
- jQuery開發(fā)基礎(chǔ)教程
- Flowable流程引擎實戰(zhàn)
- 響應(yīng)式Web設(shè)計:HTML5和CSS3實戰(zhàn)(第2版)
- MyBatis 3源碼深度解析
- WildFly Cookbook
- Python編程快速上手2
- 3ds Max 2018從入門到精通
- Blender 3D Cookbook
- 數(shù)據(jù)庫技術(shù)及應(yīng)用教程上機指導(dǎo)與習(xí)題(第2版)
- PhoneGap 3.x Mobile Application Development Hotshot
- 編程風(fēng)格:程序設(shè)計與系統(tǒng)構(gòu)建的藝術(shù)(原書第2版)