1 Star 1 Fork 32

LShrimp游戏 / ccc-tnt-framework

forked from 伍拾陆 / ccc-tnt-framework 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

CocosCreator 3.x 游戏开发框架

介绍

TNT 是基于 Cocos Creator 3.x 的游戏框架。

使用本框架可以不再深度依赖编辑器,不需要在编辑器中挂载脚本到节点(多语言还是需要的),在运行时会自动挂载脚本到节点。
这样做的优势在于可控性高,团队协作方便。
框架所有管理者单例和大部分类都挂载到了全局变量 tnt 上。
游戏启动需要有一个启动类和启动场景,将启动类挂载到启动场景中,在后续使用过程中,基本不再需要手动在节点挂载组件了。

安装

方式一 (推荐)

通过 Cocos Store 下载 TNT 插件安装

方式二

通过 仓库 Release 直接下载解压

启动

框架启动需要实现 IStartupOptions
详细的使用可以启动实例 Launcher.scene 查看,脚本同名。


// 框架初始化
tnt.startup(startupOptions);

本框架作为单独的 Bundle 使用,Bundle 名为 framework
Releases 中发布的 tnt.zip 已内置 preload-tnt.js 脚本,作用是在引擎加载阶段加载 framework Bundle
为保证在编辑器内优先加载框架代码,这里名为 framework 的 Bundle 使用了 a-framework 作为文件夹名,开发过程中其他 Bundle 尽量保证在框架 Bundle 后加载

从本仓库获取到的插件请在插件目录 ./extensions/{插件} 下执行 npm install 进行安装所需要的包

文档目录

在线示例

https://onvia.gitlab.io/ccc-demo/tnt-example/

感谢

Preview 插件卡西法 提供

QQ群

  • 858173205

参考

MVVM

https://forum.cocos.org/t/topic/78821
https://github.com/wsssheep/cocos_creator_mvvm_tools
https://github.com/vuejs/core.git
https://github.com/sl1673495/typescript-proxy-reactive.git

其他

https://github.com/AILHC/EasyGameFrameworkOpen
https://blog.csdn.net/xzben/article/details/120039818
https://github.com/1226085293/nodes/blob/master/assets/essential/engine/node/nodes.js
https://github.com/fairygui/FairyGUI-cocoscreator/blob/master/source/src/fairygui/GObject.ts
https://github.com/fairygui/FairyGUI-cocoscreator/blob/master/source/src/fairygui/DragDropManager.ts
https://github.com/mapeditor/tiled

空文件

简介

Cocos Creator 3.x 框架 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/lshrimp-game/ccc-tnt-framework.git
git@gitee.com:lshrimp-game/ccc-tnt-framework.git
lshrimp-game
ccc-tnt-framework
ccc-tnt-framework
master

搜索帮助