- 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.
推薦閱讀
- Learning Python Web Penetration Testing
- VMware View Security Essentials
- The Supervised Learning Workshop
- Java程序設(shè)計(jì)實(shí)戰(zhàn)教程
- Oracle Database In-Memory(架構(gòu)與實(shí)踐)
- 深入RabbitMQ
- 領(lǐng)域驅(qū)動(dòng)設(shè)計(jì):軟件核心復(fù)雜性應(yīng)對(duì)之道(修訂版)
- Android開(kāi)發(fā)三劍客:UML、模式與測(cè)試
- 創(chuàng)意UI Photoshop玩轉(zhuǎn)移動(dòng)UI設(shè)計(jì)
- Android智能手機(jī)APP界面設(shè)計(jì)實(shí)戰(zhàn)教程
- 量子計(jì)算機(jī)編程:從入門(mén)到實(shí)踐
- Java EE 7 Development with WildFly
- 絕密原型檔案:看看專業(yè)產(chǎn)品經(jīng)理的原型是什么樣
- HTML5 Game Development by Example:Beginner's Guide(Second Edition)
- Mastering VMware vSphere Storage