Cocos2d-js script compiled to bytecode, published on Windows

Source: Internet
Author: User

Sometimes the project team needs to publish the COCOS2D-JS project to the planning for debugging, but at this time do not want to publish the JS source code, at this time can use the following methods.

1. Build Win32 Runtime in Cocoside

2. Copy all files under the project directory \runtime\win32 to the custom publish directory (e.g. D:\publish)

3. Copy the Res folder, src folder, Config.json, Main.js, Project.json to the Publish directory under the project directory

4. Using the Cocos2d-console tool, compile the src folder of the publishing directory and all the JS files in the script folder into the JSC file, and save in the original directory, see the following address generation JSC bytecode this section

http://cn.cocos2d-x.org/tutorial/show?id=1324

5. Delete all JS files in the original SRC folder and the script folder

Cocos2d-js script compiled to bytecode, published on Windows

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.