commit 98767c294a5b5ac1272d320358a65821b8adbbe4 Author: zilongshanren <guanghui8827@126.com> Date: Fri Aug 12 18:41:16 2016 +0800 fix tag commit 4f6bde4e147b69d8c4c91f149140be6e81a41bbd Author: zilongshanren <guanghui8827@126.com> Date: Fri Aug 12 18:11:40 2016 +0800 add bold/italic/underline commit 69a498c44b38f302c448f23e6e544a13e419c2ea Author: zilongshanren <guanghui8827@126.com> Date: Fri Aug 12 17:31:07 2016 +0800 finish nested tag test commit 0a7328a8cf9752612de4f8a4cababf00c8e74427 Author: zilongshanren <guanghui8827@126.com> Date: Fri Aug 12 15:44:08 2016 +0800 finish tag parsing commit d375700850ea52e18710d44d39626f8f22d677ba Author: zilongshanren <guanghui8827@126.com> Date: Fri Aug 12 11:53:16 2016 +0800 refactoring done commit 38b567c3439a8b0858b59645ff81cd458ce235a9 Merge: a30fa24c6cab77Author: zilongshanren <guanghui8827@126.com> Date: Fri Aug 12 11:49:44 2016 +0800 Merge branch 'master' into add-rich-text-support commit a30fa24f7127a3cae3945ad994458744766894dc Author: zilongshanren <guanghui8827@126.com> Date: Fri Aug 12 11:48:30 2016 +0800 refactor tag parsing commit f123f52c24b3c994769f8c17de1b3a4099af72cd Merge: ad6e15bf8f9f72Author: zilongshanren <guanghui8827@126.com> Date: Fri Aug 12 09:56:44 2016 +0800 Merge branch 'master' into add-rich-text-support commit ad6e15b0124c93fa51c551a9d25d71e2d08c85da Author: zilongshanren <guanghui8827@126.com> Date: Fri Aug 12 09:50:42 2016 +0800 parse event tag commit 88cf8a900318408da6f1efba9660efebb2f7469f Author: zilongshanren <guanghui8827@126.com> Date: Wed Aug 10 15:11:03 2016 +0800 add event handler commit a409e294b8b39c0bfc79c1e9872bca7339d06e93 Author: zilongshanren <guanghui8827@126.com> Date: Wed Aug 10 11:30:53 2016 +0800 add size parser commit 15406e1884da24f1d9aade74664f18ce055c91cd Author: zilongshanren <guanghui8827@126.com> Date: Wed Aug 10 10:22:58 2016 +0800 make color parsing works commit 6a5e1966e33ed6bf7aa253c1c4d8df52c5906d4c Author: zilongshanren <guanghui8827@126.com> Date: Tue Aug 9 18:31:20 2016 +0800 support color value commit 5ee73d1fbbaac7b2e2183182dd095ec3ffa76c20 Author: zilongshanren <guanghui8827@126.com> Date: Tue Aug 9 18:21:38 2016 +0800 add basic tag parser commit 05a4de6da69a7101376432e19b4a28c098db22ac Author: zilongshanren <guanghui8827@126.com> Date: Thu Jul 14 14:37:09 2016 +0800 add escape symbol test
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.