The latest coocs creator2.x hall plus sub-game hot update

First, let me update hot, hot update is mainly to package files into json file with respect, and be judged by comparing different version numbers need to download the resources, the principle of something like this, and specific examples refer to the example provided by the official

Then the high point of the game is not restarted in hot-renewable resources, is the partial update, which is the sub-game hot update, this forum has long been realized, like in the old version 2.0 are the following are sub-game of the need to modify the main.js entrance to modify the game, which is the basic update sub game is to download the entire set of resources together down, return to the lobby when the resource entrance hall main.js reload, that is, every time you need to save a game resources entrance, and the game had to separate from another sub-project, but after the engine in the 2.0 upgrade, the resource pack can be retrieved by the name of the file to which it is a resource in the file, just to help us with this sub-game resources updated

Each game * corresponds to a sub-game resource, update the resource by classification packing heat, we can get various parts of the hall as well as sub-game resources

But for the first time have the resources to update the hall, the hall has a list of templates corresponding to the location of these resources, that is, there are only required to file resources are not downloaded it, the game's overall configuration is complete, and then by pulling from the server to take required images, scripts on the local resources on the line, this time just like the first hot update no difference, but also support for HTTP

 

Has been packaged as plug-ins, simple operation, feel free to contact

Demo apk (only the first packet in more than 7m)

A need to contact me: wx 785954118

Released nine original articles · won praise 10 · views 6050

Guess you like

Origin blog.csdn.net/qq_37779176/article/details/104049730