Cocos2dx 3.0 improvement article (4) create a project

Source: Internet
Author: User

The day before yesterday, I attended a classmate's wedding. I had a drink and almost didn't spit out my stomach. I took a day off yesterday to recuperate at home. I feel it is necessary to write another blog and tell you that I am back again.

What should I write? Simply write a process for creating a project on the 3.0Alpha1 version, and take notes.

The method for creating a project in Cocos2dx 3.0 Beta has been changed. Since I have used Alpha1 for development in the near future, let's talk about how to create a project in this version. Make notes for yourself.

To create a project in Alpha1, use create_project.py in the cocos2d-x-3.0alpha1 \ tools \ project-creator directory in python. The created project file appears under cocos2d-x-3.0alpha1 \ projects.

I would like to continue writing this article here, but I took a break at noon to browse ashboard's blog. He gave a detailed explanation of various installation and establishment projects in the 3.0 environment, I will not waste my tongue.

Directly to the link:

3.0 Environment Construction: http://blog.csdn.net/fansongy/article/details/12585427

3.0 Project Creation: http://blog.csdn.net/fansongy/article/details/12624485


Asura's blog simplifies the process of creating a project, that is, writing a script program. You can simply run the script program when creating a project. I admire him like the Yellow River ~~

Since the script he wrote is for cocos2dx 3.0 Alpha0, the directory structure is somewhat different after Alpha1, so I will "Rewrite" An Alpha1. Hey.

1. Create a text document named "create new project .txt". Open the document and copy the following code:

@ Echo off echo ================ create a project ================== set/p name = enter project name: echo Project name: % name % echo is creating a new project... set pk = com. hello. d: \ Cocos2d-x \ cocos2d-x-3.0alpha1 \ tools \ project-creator \ create_project.py-p % name %-k % pk % name %-l cpp echo creation complete opening .... d: \ Cocos2d-x \ cocos2d-x-3.0alpha1 \ projects \ % name % \ proj. win32 \ % name %. vcxproj Pause

2nd, rename the "Create new project .txt" document of "create new project. bat ". OK. Double-click the document and enter the project name. Perfect.

Finally, another problem that can be big but small, is in the 3.0 Alpha1 version, open the project file "cocos2d-win32.vc2012.sln" are in the cocos2dx unzip the root directory, alpha1 is transferred to the "cocos2d-x-3.0alpha1 \ build" directory.






Related Article

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.