In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to add CocoStudio modules to the Cocos2D-X project, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
People have been using CocoStudio for some time. Although there is still a little bit of BUG, we can already see how practical and powerful its function is. Today we are going to add CocoStudio-related modules to our project.
The current version of PS:CocoStudio uses Cocos2D-X version 2.1.2.
Step 1: copy the CocoStudio module
If you have the CocoStudioTestCPP project, you can copy it directly from the project. If not, I have packed the files of the module, address: http://down.51cto.com/data/760083
Then you can skip this step.
First, let's open the CocoStudioTestCPP folder.
We saw a folder of extensions. The extension classes in Cocos2D-X, such as CCScrollView, CCEditBox, which are components that extend the functionality of 2D-X itself, will be placed here. Of course, our CocoStudio is also an extension component, and it will be put here, too.
Let's open the GUI folder in extensions.
We noticed the folder CocoGUILIB in the red box, which did not exist in the original version of 2D-X. Because, this is our CocoGUILIB module.
Step 2: copy and add to the project
We have just found the module code for CocoStudio, so let's add it to our project now.
Once added to the project, we can use the features of CocoStudio! So let's try to write the code in CocoStduioTestCPP, which I won't introduce too much here.
Success!
If you follow the steps, turn on debugging and you will see the following results.
The above is how to add CocoStudio modules to the Cocos2D-X project. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.