LanouIOS TrainingRecommendation: cocos2d-x is an open source, cross-platform, lightweight 2D game engine that was introduced on PhoneClub. Today, we will share how to build a Mac system.Cocos2d-X EngineRight.
First download the latest version to the Cocos2d-X, this version for iOS6 to do some compatible with the right fit, so may be with the time push along, the children's shoes to see this article may not be 1.0.1 is the latest version, http://cn.cocos2d-x.org/downloadthis more convenient for
Step 1: Download the engine package for the cocos2d-X, which has been given the address above;
Step 2: After the download is complete, Himi places it in the "document"; click Finder-click "document" on the left ");
Step 3: Start the terminal. Click Finder-go-utility-terminal)
Step 4: first use the command to enter the current "cddocuments" to enter the Documents folder, continue to enter the folder command: "cdcocos2d-1.0.1-x-0.9.2", and then "sudo. the/install-templates-xcode.sh command starts to execute the installation command, which will prompt as follows:
Selectthetemplateversiontoinstall3forxcode34forxcode4inputnothingforall4: select your Xcode version, enter the corresponding number after selection, and press enter to complete the installation.
OK, create a project below, and then Xcode appears the following interface, look at the left column, an additional Cocos2d-x, such:
650) this. width = 650; "title =" iOS game development: Building a Cocos2d-X Development Environment "border =" 0 "alt =" iOS game development: build a Cocos2d-X Development Environment "src =" http://www.bkjia.com/uploads/allimg/131228/0940551D5-0.png "width =" 520 "height =" 387 "/>
Then create a good cocos2d-X project, run it directly, the effect is as follows: 650) this. width = 650; "title =" iOS game development: Building a Cocos2d-X Development Environment "border =" 0 "alt =" iOS game development: build a Cocos2d-X Development Environment "src =" http://www.bkjia.com/uploads/allimg/131228/0940554401-1.png "width =" 420 "height =" 214 "/>