Cocos2d-x game development (2) to create the first project, cocos2d-x Game Development
After configuring the development environment, try to create a cocos Project
(1) Open the installation directory of cocos2d-x, such as D: \ DIY \ cocos2d-x-3.3
The directory contains the executable files download-deps and setup. Run download-deps and type yes to avoid repeated download of the library file. Then run setup and press enter several times.
(2) run the cmd command window
Enter cocos to see the following interface:
(3) run the following command to create a cocos project: cocos new project name-p package name-l cpp-d path
For example, cocos new test-p package-l cpp-d E: \ projects \ cocos \ TestCpp
Open the corresponding directory, for example:
Then, open the proj. win32 Folder:
You can see that the executable file test. sln is the newly created Project. Open and run it on the VS2012 platform. The result is as follows:
End.