Cocos2d-x 3.5 To create a new project

Source: Internet
Author: User

Cocod2d-x Development under Mac has tended to be script-controlled, and Python has been used in many places to automate management.

Open the terminal, CD to the source directory. If you've already configured all of the environment variables, you're ready to use them here.

cocos new MyGame -p com.your_company.mygame -l cpp -d NEW_PROJECTS_DIR

Cocos is a script name, new is the keyword, mygame is the project you want to build, Com.your_company.mygame is the package name,-L is the command line argument for the development language, CPP means that c++,-d is the command line parameter represents the directory, New_ Projects_dir Project Catalog name.

For example, I execute the following command under Terminal

new-p com.goonear.-l-d goonearGame

After the script executes, it creates a directory in the source directory Gooneargame, and then inside is my new project directory mygame.

You can then open the Xcode project under the Proj.ios_mac directory.

Recently began to study cocos2d-x this thing. For almost a year, there's a lot of new stuff.

PostScript remembered Houtie teacher said the famous sayings, the source, no secret. The controversy is quite big, but I think, if the accumulation of knowledge enough to study an open source, to understand it in essence, learning the source code is essential. The development of the software industry always comes from the top. That is, always the best, the most elite, the most powerful of that a small number of people standing at the top, doing the most complex, the bottom, the most basic design work. Then another part of Daniel on this basis to reduce the use of difficult things, and finally the general practitioners are to do not know the reason why the development work. Program design, originally is a need for a higher IQ, only for a few people to do things, developed to now, has the concept of engineering, very popular. But it has to be said that personal talent, the accumulation of basic knowledge, persistent efforts are very important. If you think IQ is still relatively high, thinking is relatively agile, may wish to study the source code.

Cocos2d-x 3.5 To create a new project

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.