cocos-enhance-kit/engine
2024-12-20 14:49:56 +08:00
..
.circleci 初始化 2022-06-25 00:23:03 +08:00
.github 初始化 2022-06-25 00:23:03 +08:00
.vscode 初始化 2022-06-25 00:23:03 +08:00
bin 更新版本号至 3.0.0 2024-12-13 17:21:50 +08:00
cocos2d [engine] 修复高级性能指示器 Char Atlas 数据统计问题 2024-12-20 14:49:56 +08:00
docs 初始化 2022-06-25 00:23:03 +08:00
editor [engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.13 版本 2024-10-16 16:23:25 +08:00
extensions [engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.13 版本 2024-10-16 16:23:25 +08:00
external 初始化 2022-06-25 00:23:03 +08:00
gulp [engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.12 版本 2023-10-30 22:32:32 +08:00
licenses 初始化 2022-06-25 00:23:03 +08:00
polyfill 初始化 2022-06-25 00:23:03 +08:00
.editorconfig 初始化 2022-06-25 00:23:03 +08:00
.eslintrc.json 初始化 2022-06-25 00:23:03 +08:00
.gitignore 取消忽略某些必要的文件 2022-07-05 14:54:28 +08:00
.gitpod.Dockerfile 初始化 2022-06-25 00:23:03 +08:00
.gitpod.yml 初始化 2022-06-25 00:23:03 +08:00
.jshintrc 初始化 2022-06-25 00:23:03 +08:00
api.d.ts [engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.10 版本 2022-10-01 17:51:47 +08:00
AUTHORS.txt 初始化 2022-06-25 00:23:03 +08:00
CHANGELOG.txt 初始化 2022-06-25 00:23:03 +08:00
DebugInfos.json 取消忽略某些必要的文件 2022-07-05 14:54:28 +08:00
EngineErrorMap.md 初始化 2022-06-25 00:23:03 +08:00
extends.js 初始化 2022-06-25 00:23:03 +08:00
gulpfile.js 初始化 2022-06-25 00:23:03 +08:00
index.js 初始化 2022-06-25 00:23:03 +08:00
MAINTAINERS 初始化 2022-06-25 00:23:03 +08:00
modules.json [engine] 多纹理渲染 - 支持 cc.Label(not char cache mode)、cc.RichText、cc.Sprite、cc.MotionStreak 组件 2022-06-25 00:43:02 +08:00
package.json 使用 volta 节点版本管理器 2024-11-14 21:01:07 +08:00
predefine.js [engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.13 版本 2024-10-16 16:23:25 +08:00
README.md [engine] [cocos2d-x] [jsb-adapter] 适配引擎 v2.4.10 版本 2022-10-01 17:51:47 +08:00
tsconfig.json 初始化 2022-06-25 00:23:03 +08:00
VERSION.md 更新版本号至 3.0.0 2024-12-13 17:21:50 +08:00

stars forks version license twitter Gitpod Ready-to-Code

Cocos Creator

2.2.0 Main Window

Cocos Creator is a complete package of game development tools and workflow, including a game engine, resource management, scene editing, game preview, debug and publish one project to multiple platforms. Cocos Creator focused on content creation, which has realized features like thorough scriptability, componentization and data driven, etc. on the basis of Cocos2d-x. With JavaScript, you can scripting your component in no time. The editor and engine extension is also made with JavaScript so you can make games and refine your tool in a single programming language. Cocos Creator is an provides an innovative, easy to use toolset such as the UI system and Animation editor. The toolset will be expanding continuously and quickly, thanks to the open editor extension system.

This repo is the engine framework for Cocos Creator. Cocos Creator's in-editor scene view and web runtime share the same framework, which is the content of this repo. It's originally forked from Cocos2d-html5, we build up an Entity Component architecture on it to meet the needs of Cocos Creator.

This framework is a cross-platform game engine written in JavaScript and licensed under MIT. It supports major desktop and mobile browsers, it's also compatible with Cocos2d Javascript Binding engine to support native platforms like iOS, Android, Win32, macOS.

The framework is naturally integrated with Cocos Creator, so it's not designed to be used independently.

Developer

Prerequisite

Install

In cloned project folder, run the following command to setup dev environment:

# Initialize gulp task dependencies
# npm is a builtin CLI when you install Node.js
npm install

This is all you have to do to set engine development environment.

Build

gulp build

If the compilation process encounters a "JavaScript heap out memory" warning, you can use the following command line

gulp build --max-old-space-size=8192

Test

Prerequisite

  • Install express: npm install express.
  • Install gulp-qunit: npm install gulp-qunit.

Unit Test

Online one-click Setup

You can use Gitpod(an online IDE which is free for Open Source) for developing the project online. With a single click it will launch a workspace and automatically:

  • clone the Cocos Creator repo.
  • install all the dependencies mentioned above.
  • run gulp build, npm test in separate terminals.
  • start the express server and open http://localhost:8511/bin/qunit-runner.html in the right corner of the IDE.

Open in Gitpod

DebugInfos

View EngineErrorMap.md All the debug infos are defined in file EngineErrorMap.md. The file DebugInfos.json will be generated based on EngineErrorMap.md, when run gulp build command.

For details below:

  1. Define log in EngineErrorMap.md

    example:

    ### 1001
    
    cocos2d: removeAction: Target not found
    
  2. Define deprecated log in EngineErrorMap.md The log should be marked as DEPRECATED when then logId is no longer referenced in the project.

    example:

    ### 1000
    
    <!-- DEPRECATED -->
    cc.ActionManager.addAction(): action must be non-null