0 Basic Learning iOS Development (ii)-use cocos2d-x3.0 to execute Hello World

Source: Internet
Author: User

About the development framework, based on the information retrieved on the Internet, I feel that the Cocos2d-x iOS game development Framework is very good and has very strong portability, so I intend to try it out.


Write down this article, the latest cocos2d-x version number is v3.0 stable version (just announced a few days ago), as follows: HTTP://WWW.COCOS2D-X.ORG/FILEDOWN/COCOS2D-X-3.0-CN


Installation methods such as the following:

1, decompression program compression package (where the path can not have Chinese oh, because it is python, you understand ...) )

2, sudo python setup.py installation cocos2d-x, follow the instructions to do some small settings

3, according to the contents of the final installation instructions

Please execute command: "source/users/*** (your username)/.bash_profile" to make added system variables take effect, in which the instructions are partially re- Paste the carriage return can be

4. Establish a iosproject:

Cocos New Helloworld-p Com.cwbeta.helloworld-l cpp-d ~

New represents a project

HelloWorld for Project name

-P is the package name after

After-L is the development language used, here I use C + +

-D is the location of the project folder you created, depending on your preferences (for example,-D ~/documents/ios)



5. Open the Helloworld.xcodeproj () in the Proj.ios_mac folder that you created in the project folder:



6. Can change the device you use (I chose ipad)



7, then can directly product-run, the following is the effect of Hello World:


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.