zilongshanren 57e17c73b9 add RichText component
A minimal working prototype

try and fix

fix richtext color

make richtext properties tweakable

temp

refine

add measure text

fix fragment text

finish non \n case

make non maxWidth working

adjust calling order

fix wired bugs

get first word

still one bug remained

fix wrap error

refactoring

update lineOffsetX

refactoring

refactoring

fix a return issue

don't display vertical alignment

improve performance

refactoring almost done

refactoring

refactoring

improve setColor

use shared htmlTextParser

fix contentSize change issue

add click event handler

add hoverin and hoverout event handler

fix a issue

remove mousein and mouseover

done
2016-08-25 16:47:59 +08:00
2016-06-06 18:52:05 +08:00
2016-08-25 16:47:59 +08:00
2016-08-16 10:50:56 +08:00
2016-03-14 21:46:13 +08:00
2016-07-26 11:42:20 +08:00
2016-08-25 16:47:59 +08:00
2016-07-27 12:01:19 +08:00
2016-07-04 10:10:08 +08:00
2016-02-03 11:17:38 +08:00
2016-03-24 22:42:37 +08:00
2016-08-16 11:00:41 +08:00
2016-08-12 18:05:13 +08:00
2016-03-14 11:07:53 +08:00
2016-07-27 16:51:12 +08:00
2016-07-18 10:19:27 +08:00
2016-08-05 10:16:09 +08:00
2016-06-30 11:43:33 +08:00
2016-08-16 09:57:36 +08:00
2016-07-26 11:42:20 +08:00
2016-06-08 11:04:35 +08:00

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.

S
Description
No description provided
Readme MIT 361 MiB
Languages
C++ 50.7%
TypeScript 35.1%
JavaScript 4%
C 4%
Objective-C++ 1.7%
Other 4.4%