Code Monkey home page Code Monkey logo

cocoscreator_scripthotupdate's Introduction

Cocos Creator 脚本热更新

通过脚本实现了官方 C++ 版热更功能,提高的稳定性和易维护性,使用者可在脚本上扩展自定义的版本更新业务。

实现功能清单

  1. 版本配置文件对比,提示有新版本
  2. 版本清单文件对比,分析出添加、更新、删除的资源进行下载或删除
  3. 更新失败或异常中断时,记录更新状态,下次触发更新时恢复更新进度,不在下载已更新的文件
  4. 支持多模块热更新管理
  5. 基于CocosCrator编辑器的版本配置文件生成工具插件

使用方式

  1. 打开 Cocos Creator 的 XXGAME 项目
  2. 菜单选择“项目 > 构建发布”
  3. 点击构建按钮
  4. 菜单选择“自定义工具 > 热更配置生成”

其它说明

  1. 热更脚本代码在assets/script文件下AssetsManager.js、AssetsDownload.js两个文件,代码上注释比较全
  2. 热更工具代码在packages/hot_update文件下

联系方式

[email protected]

cocoscreator_scripthotupdate's People

Watchers

 avatar

Forkers

game-finalteam

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.