GithubHelp home page GithubHelp logo

mlgameframework's Introduction

MLFramework简介

MLFramework(简称ML)是一个基于 cocosCreator v2.0.x引擎的游戏框架,主要对游戏开发过程中常用模块进行了封装,规范开发过程、加快开发速度,便于维护

目前ML功能相对单一,主要满足自己目前微信小游戏的开发,ML目前内置5个常用模块,后续会不定期增加新的模块,也可自定义项目独有的模块,比如游戏中常用的任务模块

1.SettingModule(本地存储模块)主要对ccc中 cc.sys.localStorage的封装

2.EventModule(事件模块)事件监听与分发,类似于广播,降低游戏逻辑之间的耦合

3.ResourceModule(资源模块)主要对ccc中cc.loader的一些封装

4.UIModule(UI模块)管理界面的模块,动态加载显示界面、隐藏界面不会销毁,而是等待复用、自动管理层级,需派生自UIForm,提供一系列生命周期函数

5.EntityModule(实体模块)游戏实体管理模块,除开UI外游戏内的其他物体都可以理解为是实体,实体类需要派生自Entity类,和UIForm一样也会提供一系列生命周期函数,传入一个预设和自定义数据即可创建出一个实体,提供分组功能,隐藏实体时会自动放入对象池,对象池会在检查对象在对象池内的时间,超过一定时间才会释放销毁该实体

示例项目会在近期补充,可能春节期间吧,😔

mlgameframework's People

Contributors

fengzhouxuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.