[One of iOS-cocos2d-X Game Development] in combination with xcode Mac to build a Cocos2d-X development environment!

Source: Internet
Author: User

Li huaming himiOriginal, reprinted must be explicitly noted:
Reprinted from[Heimi gamedev block]Link: http://www.himigame.com/iphone-cocos2dx/599.html

 

Starting from today, himi will gradually update the cocos2d-X blog, after all, cocos2d-X cross-platform is indeed very attractive, especially the net dragon Company "91 tribe" mobile online games more let himi has a deep value of cocos2dx, so today, himi will share how to build a cocos2d-X engine in the MAC system;

First, download the latest version of cocos2d-x. himidownload is cocos2d-1.0.1-9.9.2.zip. This version is compatible with ios5, so we may see that this article is not the latest version of 1.0.1, so here himi give download list address for everyone to select the desired version, http://code.google.com/p/cocos2d-x/downloads/list

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" and 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 "CD documents" to enter the Documents folder, continue to enter the folder command: "CD cocos2d-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:

select the template version to install3 for xcode34 for xcode4input nothing for all4

Select the version corresponding to your xcode, enter the corresponding number, and press enter to complete the installation ~ (Himi sad reminder, did not see this direct press ENTER selected by default 3-.-I'm depressed, it doesn't matter Haha ~)

OK, create a project below, and then xcode appears the following interface, look at the left column, an additional cocos2d-x, such:

Then the new cocos2d-X project is as follows:

Run it directly. The effect is as follows:

OK. The building is complete. The perfect operation is said. Hey, it's not too early. It's time to prepare for bed. Good night, kids shoes ~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.