Cocos2d-x 2.2.3 Android Project, compile when the project automatically put files under one folder under another folder

Source: Internet
Author: User

If you want to do the title function, you need to open the project directory build_native.sh(Notepad or editing software open)

Locate the Create Assets file

" $APP _android_root "/assets

Then write the following code:

#将工程下的sdk/orderorder.lua copied to assets/script/"$APP _android_root " under the project $APP _android_root "/assets/script/pay#Copy the SDK/client_txt.xml under the project to the project assets/data/xml/"$ App_android_root""$APP _android_root"/assets/data/xml/gameui

(The above mentioned project is Android engineering, don't confuse it!!) )

When you compile it will be overwritten!!

This approach is to solve different Android engineering different data, and we do not want to change the COCOS2D project, you can do so, in cocos, it will only access the resources under the data, and our Android Project access is assets, so, As long as we change the data under the assets can be!!!

Cocos2d-x 2.2.3 Android Project, compile when the project automatically put files under one folder under another folder

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.