Cocos2d-x 3.6 create a project
Here, we should have a development environment. If not, let's go to my previous article or Baidu's article.
Now the development environment, xcode has basically upgraded to 6. x Series, my is 6.3, while the cocos2d-x is 3.6.
Now there is no xcode template for creating a project. Someone is asking me why I can't use xcode to create a project like creating an ios project. Now, use the python script to create a new project.
There is a READE. md file in the source code directory. Open it with the Mou program and you can see instructions for use.
Terminal, go to the source code directory and run the following command:
Cocos new MyGame-p com. goonear. mygame-l cpp-d./Goonear
This command will create a project Mygame with the package name com. goonear. mygame, the language is cpp (c ++). In the Goonear directory under the source code directory, this Goonear directory is my name, and you can take any name.
You can run the following command on the terminal to view the Command help:
Cocos new -- help
-P indicates the package name.
-L is language. There are three languages: lua, cpp, and js.
-D is directory, under which directory the project is stored.
You can try it yourself.