How to Create a Cocos2d-x project on MAC

Source: Internet
Author: User

Objective: This is suitable for kids shoes who plan to develop Cocos2d-x games on MAC systems.

Requirement: First, you have to have a girlfriend. Joke.

1. MAC system computer, authentic MAC machine or black apple.

2. One of the best development software on Xcode mac, you know. Ps: I have Xcode5

3. Go to the official web download cocos2d-x. Ps: My version is 2.2.3

4. No, that's all.


Step: Find a theme called "terminal" on your mac, and open it. It's black and lacquer, just like cmd on Windows 7.

Enter cd/Users/username/cocos2d-x-2.2.3/tools/project-creator in the terminal and press Enter.

Find the/tools/project-creator subfolders in the cocos2d-x folder you downloaded. Note: Change username to your mac user name!

Next, continue to input: python create_project.py-project HelloWorld-package com.cocos2d-x.org-language cpp in the terminal and press Enter. If you see a lot of done, it means you have succeeded !~ Note: HelloWorld needs to be changed to the name of the project you want to create, the com.cocos2d-x.org needs to be changed to the package name of the project you want to create, it seems to need such a three-segment...


After the project is created, you can find the project you created in the projects under the directory of your cocos2d-x, from proj under the project directory. double-click XXXX in the ios folder. xcodeproj project file (XXXX your project name) can open your project in Xcode!


After: Ready to learn about cocos2d-x and then do some game play, hey ,,,

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.