Today, I am studying Cocos2dx to create a new project (PS: a passer-by, I can't do anything, I bring the pace, you won't be able to get up later, you can't control it later, i'm playing control. You can't lose any more. It's really a dish)
After the cocos2dx project is created, it cannot be run. Kaige asked me to directly use the Hello world project. I 'd like to get it by myself. Therefore
1. The environment is win7 + cocos2dx \ cocos2d-2.1, not 3.0, 3.0 to run on win8, I have not installed.
This was originally followed by the previous article, but the previous article uses 3.0, and this article is 2.0. There is a difference.
No one knows what cocos2dx is and why it can be used as a game.
What I understand now is that it is a lib library. The library encapsulates some things, and then according to the library syntax, you can run the interface and accept user input, etc, it seems that a dedicated cocos-studio is not considered for now.
Of course, to use the lib library to compile, open E: \ cocos2dx \ cocos2d-2.1rc0-x-2.1.2-hotfix \ cocos2d-2.1rc0-x-2.1.2 under the directory of the cocos2d-win32.vc2010.sln, enter, compile project-common, and project-cpp, the generated Debug. the win32 folder contains the dll and lib libraries. Why is this important? This is what we need to use for running and compiling. Now you are ready. (No sln file, generated using build-win32.bat ).
2. install-templates-msvc.bat. Call this operation to add the options for generating the new cocos2dx project to.
3. Create a new one. Mine is FishingJoy, and then compile it. I will handle a bunch of errors. The solution is to add include. H directory, and then found that the compilation is passed, but still run to complete, so in your project directory C: \ Users \ Auser \ Documents \ visual studio 2010 \ Projects \ FishingJoy \ Debug. win32, add a bunch. dll, as long as the original Debug in cocos2dx. all the dll files in the win32 folder are copied and compiled. Generated successfully. Running completed
Well, today we are here to change the background picture to the most beautiful prime minister in the world. Good night. Roar.