Cocos2d-x 3.2 Environment Construction, cocos2d-x3.2 Construction

Source: Internet
Author: User

Cocos2d-x 3.2 Environment Construction, cocos2d-x3.2 Construction

First, open the terminal cd to the directory/cocos2d-x-3.2/tools/cocos2d-console/bin and run the cocos. py script to create the file.

  1. ./Cocos. py new HelloWorldDemo-p com.coco2dx.org-l cpp-d ~ /Desktop
[Javascript]View


Parameter description: HelloWorldDemo is the project name.

-P: Next package name

-L followed by development language types, including cpp, lua, and js

-D directory to which the project is stored

If-bash:./cocos. py: Permission denied appears, it is because you do not have the Permission. Run the chmod command to modify the cocos. py permission in the directory.

Chmod u + x cocos. py [Cpp]View plaincopy
  1.  

  2. Terminal command:



Run the project

After the project is created, use Xcode to open the Xcode project file in HelloWorldDemo/proj. ios_mac and run the project.



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.