Cocos2d-x-iOS platform lua encrypted luac resource method and Jsc file (MAC platform development trial-windows platform has not been studied)

Source: Internet
Author: User

Cocos2d-x-iOS platform lua encrypted luac resource method and Jsc file (MAC platform development trial-windows platform has not been studied)

First of all, it's really too busy recently. I haven't written a blog for a long time. Today, I just want to write about some of the latest discoveries in the game;
In other words, writing a game based on the Cocos2dx engine + script has been able to perform incremental updates and real-time compilation, saving a lot of time; well, I don't need to talk much about it, so I will go into the topic;
Here I take Cocos2d-x-2.2.2 as an Example <其实,写着文章时候cocos2d-x-3.2 都封版了> ;
Today I will talk about how to use the cocos-console in the Cocos2d-x3.2 to batch encrypt lua scripts-to become luac files, js files into jsc Encrypted Files <其实,很简单就一行命令即可,当然我这里是以mac平台为例> :

(This chapter is to teach big home Cocos2dx-3.2 cocos-console to batch processing a path under the lua file encryption for luac specified path, this reduces the trouble of using the previous luajit + shell script:


First, enter the Cocos2d-x-3.2 in the mac terminal to specify the path: for example, My:

/Users/your username/cocos2d-x-3.2/tools/cocos2d-console/bin

After entering the./cocos luacompile-h command, related usage instructions will appear,


Then you can follow the instructions;

For example, input

<喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + signature/Signature + signature/wrw + signature + tOa3xbXEwre + tiA8yOe5 + signature/Signature + PGJyPgo8L3A + CjxwPr + 00Ke5 + Signature = "http://www.2cto.com/uploadfile/Collfiles/20140821/2014082110455512.png "alt =" \ ">


OK! At this point, our lua encryption is achieved by luac. Isn't it easy! Now let's talk about how to encrypt js files into jsc files. The principle is the same as lua's encryption. To save time, I directly:




Android platform! In fact, it is also very simple. reading a lot of online writing is too complicated,

Coming soon!




















































































































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.