Cocos2d-x development v3.0beta2 new project and add library files

Source: Internet
Author: User

1. Create a project

Version 3.0 supports Python command line and cocos2d-x-3.0beta2 \ tools \ project-creator \ create_project.py tools to create projects, 3.0beta new support for custom project directories. There are a lot of online information on the command line. Here we will look at how to create a project through tools. Run the script mentioned above on the dual-host machine to display a graphical interface, which is used to set the corresponding project name, android package name, and project path, and then click create to create.



In this way, a new project is created and you can find the project to run:

2. Add other class libraries 3.0 with strong design coupling. The modules in the project usually exist in the form of libraries, and the link library must be added frequently. The CocoStudio editor resource data is often used in 3.0, so you need to add the CocoStudio library.
2.1 Add library project right-click solution, add-> existing project, in the pop-up box find the file cocos2d-x-3.0beta2 \ cocos \ editZ detail? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> keys" http://www.2cto.com/uploadfile/Collfiles/20140225/20140225085419252.png "alt =" \ ">

2.2 right-click "TestCpp" to add a library project reference, select "Reference" in the pop-up box, select the required library, and click "OK" to add a project reference to the library.


LibCocosStduio is added in this way. The same method is used to add other libraries. 2.3 add path Add the class library path in the project properties: $ (EngineRoot) cocos and $ (EngineRoot) cocos \ editor-support to the include directory, otherwise the header file will not be found.
3. Use v3.0beta2's project creation tool to create a project and add a library file.
This blog from Sting926, reprint please indicate the source, prohibited commercial use: http://blog.csdn.net/handsome_926/article/details/19758853

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.