Cocos2dx-Create Project 2

Source: Internet
Author: User

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.

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.