JavaScript Other
Latest commit 3a28f21 Feb 18, 2018
jareguo Merge pull request #2341 from nshmura/fix-types
Fix types of CCPolygonCollier and CCPhysicsChainCollider
Permalink
Failed to load latest commit information.
.github add issue template Dec 28, 2017
cocos2d Fix types of CCPolygonCollier and CCPhysicsChainCollider Feb 16, 2018
docs update example of CCEnum May 16, 2017
editor/dashboard move template to editor/template Dec 28, 2015
extensions updating license Feb 1, 2018
external Remove uselessUpdate pstats to v1.3.0 Jun 12, 2017
gulp updating license Feb 1, 2018
jsb register engine version for both web and jsb Feb 8, 2018
licenses updating license Feb 1, 2018
polyfill CC_JSB condition check for console.time Oct 17, 2017
test Merge branch 'v1.8' Jan 25, 2018
.editorconfig add editorconfig file Sep 22, 2016
.eslintrc.json add eslint Jul 27, 2016
.gitignore preload scene in runtime platform Jul 4, 2016
.jshintrc Fix JSB issues Feb 3, 2016
AUTHORS.txt Modify README and some docs Mar 24, 2016
CCBoot.js register engine version for both web and jsb Feb 8, 2018
CCDebugger.js updating license Feb 1, 2018
CHANGELOG.txt synchronized to cocos2d-html5#6700f8bb94b2. starting from fresh history. Dec 5, 2015
DebugInfos.js updating license Feb 1, 2018
EngineErrorMap.md Fix unit test Sep 14, 2017
MAINTAINERS Integrate lgtm.co Aug 5, 2016
README.md Update README.md Jun 8, 2016
circle.yml add CC_SUPPORT_JIT macro Jan 3, 2018
extends.js updating license Feb 1, 2018
gulpfile.js updating license Feb 1, 2018
index.js remove chipmunk and studio namespace Feb 9, 2018
modules.json adjust toggle in modules.json Dec 13, 2017
package.json lock uglify-es Jan 25, 2018
predefine.js register engine version for both web and jsb Feb 8, 2018

README.md

Cocos Creator Engine Framework

This repo is the engine framework for Cocos Creator, Cocos Creator is a game development tool focused on content creation, which has realized features like thorough scriptability, componentization and data driven, etc. on the basis of Cocos2d-x.

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, Mac OS X.

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

Test

Prerequisite

  • Install express: npm install express
  • Install gulp-qunit: npm install gulp-qunit@1.3.0

Unit Test

Test in CLI
npm test
Test in browser
  1. Build for testing.

    gulp build-test
  2. Start express in cloned project folder.

    node test/qunit/server.js
    
  3. Open http://localhost:8511/bin/qunit-runner.html in your browser.

Visual Test

  1. Build for testing.

    gulp build-test
  2. Start express in cloned project folder.

    node test/visual-tests/server.js
    
  3. Open http://localhost:8512/test/visual-tests/index.html in your browser.

Links