Zero basic learning IOS development (2)-run Hello world with cocos2d-x3.0

Source: Internet
Author: User

About the development framework, according to the information retrieved on the internet, I feel that the ios game development framework of cocos2d-x is very good, and there is a strong portability, so I plan to try it.


As of this article, the latest cocos2d-x version is v3.0 stable version (just released a few days ago), for: http://www.cocos2d-x.org/filedown/cocos2d-x-3.0-cn


The installation method is as follows:

1. decompress the compressed program package (the path cannot contain Chinese characters, because it is python, you know ...)

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

3. Follow the prompts for installation.

Please execute command: "source/Users/*** (your username)/. bash_profile" to make added system variables take effect. copy and paste the command part and press Enter.

4. Create an ios project:

Cocos new helloworld-p com. cwbeta. helloworld-l cpp-d ~

New indicates a new project.

Helloworld is the project name

-P is the package name.

-L is the development language used. Here I use c ++

-D is the location where the created project directory is stored. It is determined based on your preferences (for example,-d ~ /Documents/ios)



5. Open helloworld. xcodeproj () in the proj. ios_mac folder in your project directory ():



6. Here you can change the device you are using (I chose ipad)



7. Then you can directly choose Product-Run. The following figure shows 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.