• Stars
    star
    195
  • Rank 199,374 (Top 4 %)
  • Language
    C
  • License
    MIT License
  • Created over 2 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

cocomat

项目介绍

由腾讯团队贡献的一套可在多个业务间复用的高性能、高效能 Cocos Creator 公共组件框架。

cocomat 的原意是 “椰子树皮编织物” ,与这个项目用于加速 Cocos 业务开发的目的接近。另外 matmate 相似,有 “Cocos 的 伙伴” 的含义。

cocomat 目前主要包括:

  • 一系列 UI 组件,如 ToastLoadingBackBtn 等;
  • 工具组件,如场景管理、截图工具、音频播放、View 管理、内存管理等;
  • 一套自研无层级视频播放器。

文档 & demo

https://demo-edu.cocos.com/

关于meta文件行尾的问题

检出代码后,打开creator,可能会自动修改meta文件的行尾,导致看到大量meta文件为待提交的状态,可以在命令行输入以下配置,不对文件的行尾进行转换

git config --global core.autocrlf false

特别说明

由于 GitHub 仓库的大小限制,clone 完成代码后,需要下载 jsb-default,并解压到 cocomat/build/目录,使其最终结构为 cocomat/build/jsb-default

组件列表

组件名称 组件分类 用途
CCMSDFLabel UI 组件 基于SDF的字体渲染实现
CCMToast UI 组件 一款类似于 Android Toast 的吐司组件
CCMBackBtn UI 组件 返回按钮组件,搭配 CCMSceneManager,风味更佳
CCMFitWidget UI 组件 屏幕适配组件
CCMPicker UI 组件 选择器组件
CCMCategoryView UI 组件 相对复杂的宫格组件
CCMVideo UI 组件 一套同层渲染视频组件
CCMHanziWriter UI 组件 一个用于 CocosCreator 的 HanziWriter 项目
CCMResLoader 资源组件 封装资源的加载和卸载接口
CCMResLeakChecker 资源组件 内存泄露检查工具
CCMSceneManager 工具组件 受 Android Activity 启动模式启发,将其启动模式复刻到了 CocosCreator
CCMAudioManager 工具组件 用来播放本地和远程音频文件
CCMCapture 工具组件 用来对指定节点进行截图
CCMUtils 工具组件 提供一些可以提高开发效率的方法
CCMImageLoader 工具组件 图片加载类,动态加载项目中或者远程图片(实验性功能)
CCMSpineLoader 工具组件 骨骼动画加载类,动态加载项目中或者远程骨骼动画(实验性功能)
CCMBinding 工具组件 一套在TS中绑定Native方法的框架,旨在抹平不同平台的调用差异(实验性功能)

项目贡献者

按昵称首字母序(排名不分先后):

宝爷bearhuangbuckethead陈皮皮,coolcao,大风起兮云飞扬渡鸦galiohuanghonmono,hughxnwang,jianfeilijrainliukhanzhang,legendyu,nextnowpaperwzpan子龙山人子山喵叔

More Repositories

1

cocos-engine

Cocos simplifies game creation and distribution with Cocos Creator, a free, open-source, cross-platform game engine. Empowering millions of developers to create high-performance, engaging 2D/3D games and instant web entertainment.
C++
8,099
star
2

example-projects

Example project to guide users through how to create game with Cocos Creator
JavaScript
1,284
star
3

tutorial-blackjack-deprecated

Blackjack game made with Cocos Creator.
JavaScript
798
star
4

engine-native

Native engine for Cocos Creator v2.x
C++
696
star
5

cocos-awesome-tech-solutions

Cocos' Awesome Technical Solutions
TypeScript
625
star
6

cocos-example-projects

JavaScript
499
star
7

cocos-docs

Manual docs content for Cocos Creator
TypeScript
303
star
8

cocos-example-dark-slash

PLSQL
291
star
9

cocos-test-projects

TypeScript
238
star
10

cocos-tutorial-first-game

Quick start game for Fireball
JavaScript
236
star
11

cocos-example-ball

A jumping ball demo created by Cocos Creator 3D
TypeScript
177
star
12

cocos-example-cartoon-vegetation

TypeScript
162
star
13

cocos-example-ui

TypeScript
148
star
14

cocos-tutorial-taxi-game

TypeScript
147
star
15

cocos-tutorial-duang-sheep

tutorial repo
JavaScript
120
star
16

creator-lua-deprecated

Cocos Creator 的 Lua 支持
Lua
117
star
17

awesome-cocos

⚡️ Delightful Cocos Creator show cases, utilities, documents and more!
114
star
18

cocos-tutorial-airplane

video tutorial airplane
TypeScript
114
star
19

cocos-tutorial-mind-your-step

Cocos Creator learning tutorial
TypeScript
74
star
20

firedoc-deprecated

API Doc generator based on YUIDoc
JavaScript
70
star
21

cocos-example-process-build-textures

A build plugin to help you process textures in Creator 2.x after build
JavaScript
66
star
22

FBX-glTF-conv

A FBX to glTF file format converter.
C++
63
star
23

example-camera-deprecated

Camera demo for Cocos Creator
JavaScript
48
star
24

cocos-engine-external

external 3rd party modules for cocos-engine
C++
47
star
25

cocos-creator-extensions

TypeScript
47
star
26

cocos-example-physics

Samples for 3d physics
TypeScript
28
star
27

cocos-example-marionette

This project is to demonstrate the use of Cocos Creator Marionette animation system.
TypeScript
25
star
28

example-instant-games-deprecated

JavaScript
20
star
29

example-combat-animation-deprecated

turn based action rpg
JavaScript
19
star
30

i18n-example-deprecated

showcase how to implement i18n to your game.
JavaScript
19
star
31

smart-merge-tool-deprecated

JavaScript
17
star
32

cocos-tutorial-storage

Cocos Creator Demo: Save and load user profile with encryption using sys.localStorage
JavaScript
17
star
33

example-team-build-ui-deprecated

Team build ui demo for Cocos Creator
JavaScript
16
star
34

creator-api-docs-2.x

Host generated Cocos Creator 2.x API
JavaScript
15
star
35

cocos-plugin-import-2.x

plugin for migrating cocos creator 2.x projects.
TypeScript
14
star
36

google-game-sdk

C++
14
star
37

helloworld-typescript-legacy

Typescript helloworld project template for Cocos Creator
TypeScript
13
star
38

gulp-fontello-import-deprecated

Import svg files to fontello icon font project, use svg filename as glyph name. Also provide task for auto download exported css and font files into desinated folder.
JavaScript
12
star
39

cocos-example-materials

TypeScript
11
star
40

example-responsive-ui-deprecated

Cocos Creator - Responsive UI demo
JavaScript
11
star
41

cocos-example-render-pipeline

TypeScript
9
star
42

divine-vanity-deprecated

JavaScript
9
star
43

cocos-benchmark

EJS
9
star
44

cocos-example-open-data-context

TypeScript
9
star
45

cocos-google-admob

Objective-C
9
star
46

cocos-template-taxi-game

TypeScript
8
star
47

cocos-effect

VSCode Syntax highlight support for Cocos Effect file
TypeScript
7
star
48

cocos-tutorial-video-src

JavaScript
6
star
49

ui-kit-deprecated

JavaScript
6
star
50

cocos-example-custom-pipeline

TypeScript
6
star
51

cocos-ccbuild

TypeScript
5
star
52

cocos-web-extension-detect-engine

A Chrome extension to detect the engine running in web.
JavaScript
4
star
53

example-packages-deprecated

HTML
4
star
54

overhead-benchmark-deprecated

Creator 架构层性能损耗 Benchmark
C++
4
star
55

cocomat-docs

3
star
56

firedoc-theme-notab-deprecated

A new theme without tab in navigation sidebar
HTML
3
star
57

devops-workflows

Workflows for creator team.
JavaScript
3
star
58

v8

C++
3
star
59

cocos-gameplay

cocos creator gameplay
TypeScript
3
star
60

gulp-download-fire-shell-deprecated

gulp plugin to download atom-shell
2
star
61

node-font-lib-deprecated

built for https://github.com/fireball-x/font-editor
JavaScript
2
star
62

hello-world-legacy

Hello world new project template.
JavaScript
2
star
63

fireball-engine-core-deprecated

The basic classes used in fireball engine and editors
JavaScript
2
star
64

runtime-pixi-deprecated

A pixi runtime for test basic fireball features
JavaScript
2
star
65

gulp-fb-deprecated

utilities for gulp
JavaScript
1
star
66

fire-watch-deprecated

A watch module based on node-pathwatcher, the module is implemented for syncing changes between file system and asset db in fireball
JavaScript
1
star
67

tests-3d-deprecated

engine-3d test framework
HTML
1
star
68

fireball-runtime-cocos-deprecated

JavaScript
1
star
69

firedoc-theme-default-deprecated

Optimized theme for firedoc
Handlebars
1
star
70

cocos-fire-path

node's path module with some helpful additions.
JavaScript
1
star
71

cocos-fire-fs

node's fs module with some helpful additions.
JavaScript
1
star
72

preview-template-deprecated

JavaScript
1
star
73

font-editor-angular-deprecated

Font Editor
JavaScript
1
star
74

atlas-editor-polymer-deprecated

Atlas Editor for 2D games
JavaScript
1
star
75

cocos-scripting

TypeScript
1
star
76

creator-types

TypeScript
1
star