pandamicro 4180152cdf Fix beta users reported issues (#2979)
* Fix node API docs

* Fix debug panel appear in release mode issue

* Do not alert rotation inconsistency, avoid alert in 3d

* Fix skew not updated issue

* Fix EventTarget not inited in SpriteFrame

* Added Animation.EventType

* Add getQuat & setQuat for 3d node

* do not alert normalize zero vector

* Fix spine assembler rendering issue

* Improve node hitTest & fix mask hitTest

* Add missing Node.once implementation

* Fix EventTarget.once callback parameters

* Improve event API docs

* Fix return type should be vec2 instead of simple object

* Improve showFPS parse
2018-07-16 11:26:17 +08:00
2017-12-28 20:39:01 +08:00
2017-12-26 14:30:07 +08:00
2018-06-11 17:35:48 +08:00
2018-02-01 09:38:54 +08:00
2018-04-13 17:11:23 +08:00
2016-09-22 14:10:55 +08:00
2016-07-27 12:01:19 +08:00
2018-03-26 17:11:53 +08:00
2016-02-03 11:17:38 +08:00
2016-03-24 22:42:37 +08:00
2018-03-10 07:19:12 +07:00
2018-06-28 09:27:45 +08:00
2018-06-28 09:27:45 +08:00
2016-08-05 10:16:09 +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

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.

DebugInfos

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

For details below:

  1. Define log in EngineErrorMap.md

    example

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

    example

    ### 1000
    
    <!-- DEPRECATED -->
    cc.ActionManager.addAction(): action must be non-null  
    
    
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%