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