Add CocoStudio modules to Cocos2D-X Projects

Source: Internet
Author: User

CocoStudio has been used for a while. Although there are still some bugs, we can see how practical and powerful its functions are. Today, we will add CocoStudio modules in our project.

PS: the current version of CocoStudio uses Cocos2D-X 2.1.2.

Step 1: copy the CocoStudio Module

If you have the CocoStudioTestCPP project, copy it directly from the project. If not, I have packed the module File. Address: http://down.51cto.com/data/760083

You can skip this step.

First, open the CocoStudioTestCPP folder.

We can see a folder for extensions. Extension classes in the Cocos2D-X, such as CCScrollView and CCEditBox, are all components that extend the functionality of 2D-X itself here. Of course, our CocoStudio is also an extension component, which will also be placed here.

Below we open the GUI folder in extensions.

We noticed that the CocoGUILIB folder in the red box does not exist in the original 2D-X folder. This is our CocoGUILIB module.

Step 2: Copy and add to project

We just found the CocoStudio module code, so now we will add it to our project.

After being added to the project, we can use the CocoStudio function! Then we will try to write the code in CocoStduioTestCPP. I will not introduce it more here.

Reference: CocoStudio Test decryption http://502317120.blog.51cto.com/4062300/1179512

Successful!

If you follow the steps, you can see the following results when debugging is enabled.

Now, we will introduce you here today.

Address: http://502317120.blog.51cto.com/4062300/1183253

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.