commit 68c7b5ed8e174238514b4b680634f197a976de60 Author: zilongshanren <guanghui8827@126.com> Date: Wed Dec 21 11:19:21 2016 +0800 finish web bmfont batch commit 3d038e14128a375848efec99f3706c0e252cdbd0 Author: zilongshanren <guanghui8827@126.com> Date: Fri Dec 16 17:25:05 2016 +0800 bitmap support spriteframe on web commit 87d371410de223956c50bd5a4b85958973181c11 Author: zilongshanren <guanghui8827@126.com> Date: Fri Dec 16 16:42:51 2016 +0800 make bitmap depends on spriteframe
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 node.js v4.2.1+
- Install gulp-cli v3.9.0+
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
-
Build for testing.
gulp build-test -
Start express in cloned project folder.
node test/qunit/server.js -
Open http://localhost:8511/bin/qunit-runner.html in your browser.
Visual Test
-
Build for testing.
gulp build-test -
Start express in cloned project folder.
node test/visual-tests/server.js -
Open http://localhost:8512/test/visual-tests/index.html in your browser.