Black Lives Matter. Support the Equal Justice Initiative and read our statement here.
Cocos Creator

Cocos Creator

Game development tools

stars forks version license twitter

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.




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.


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



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

Unit Test


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

For details below:

  1. Define log in


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


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

Useful links


Something missing? Edit this app.

Keyboard Shortcuts

Key Action
/ Focus the search bar
Esc Focus the search bar and cleans it
Select the next search result
Select the previous search result
Enter Open the selected search result
cmdEnter Ctrl+Enter Open the selected search result in a new tab