Commit Graph

174 Commits

Author SHA1 Message Date
pandamicro eeac56e7cc Merge pull request #2989 from cocos-creator/next
Merge next to v2.0 release
2018-07-17 16:52:06 +08:00
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
pandamicro 88e58d39b7 Add forceCanvas build option, rearrange modules for canvas renderer (#2969)
* Remove useless requires

* Build engine support forceCanvas to use canvas version render engine

* Rearrange modules, separate webgl & canvas renderer

* Do not create material in canvas

* Cleanup canvas renderers

* Improve modules.json

* Fix unit test

* Fix wechat sub domain build issues

* Make Camera working for canvas render mode

* Fix canvas renderer issues

* Reenable camera in Canvas

* Fix label colorizing issue
2018-07-13 14:13:48 +08:00
黄家辉 ecc8bb0599 test (#2910) 2018-06-30 20:29:00 +08:00
pandamicro c7603a1c63 Refactor engine & game scripts loading process (#2922)
* Remove cc.game.CONFIG_KEY

* Remove cc.game.CONFIG_KEY

* Refactor engine and game scripts loading process

- Make cc.view & cc.director ready when engine loaded
- Load game script before renderer initialize
- Emit EVENT_ENGINE_INITED instead of EVENT_RENDERER_INITED

* Remove cc.macro. ENABLE_GC_FOR_NATIVE_OBJECTS

* Remove cc.loader.resPath usage in VideoPlayerImpl

* deprecated cc.director.getWinSize

* Improve game doc
2018-06-29 16:37:06 +08:00
pandamicro 698086046f Small issue fixes and modifs (#2904)
* Fix ttf font loading issue

* Avoid update hash for sprite material if not needed

* Small improvements

* Fix director event register issue

* Fix wechat game issue on Android P (no env.system)
2018-06-27 10:30:07 +08:00
黄家辉 42fe5c3eac add progress param to the preloadScene (#2907) 2018-06-27 09:52:17 +08:00
pandamicro 2bb675522e Refactor engine boot process (#2902)
* Wrap cc._initDebugSettings & cc._getError to debugUtil module

* remove CCDebugger require

* Refactor engine boot process

* Issue fixes

* Remove duplicated ENGINE_VERSION define

* Encapsulate cc.debug with debug related APIs

* Expose cc.debug

* Fix editor require issue

* Add API deprecations
2018-06-26 15:12:26 +08:00
pandamicro 5e55976997 Improve Node event emit performance (#2862)
* Improve Node event emit performance

* Simplify Node event emit by removing event obj

* Fix example
2018-06-19 15:34:19 +08:00
yinkaile 22948c2081 fixed canvas render flow (#2721) 2018-05-23 14:49:30 +08:00
pandamicro b7ce3032ba Fix more issues for 2.0 (#2662)
* Use black as camera default clear color

* Fix director delta time issue in editor

* Fix particle system init and editor update issue

* Improve Node API ref
2018-05-10 16:47:44 +08:00
yinkaile f8988b0aa8 reset dynamic atlas before scene loading (#2655)
* reset dynamic atlas before scene loading

* fixed node undo/redo
2018-05-09 15:40:21 +08:00
pandamicro e597e34f4f Remove __instanceId from Node and Component (#2627)
* Add Scheduler.enableForTarget and change to use  _id

* Use _id instead of __instanceId in Texture2D

* Fix ParticleSystem __instanceId usage

* Use _id instead of __instanceId in ActionManager

* Fix usage of Scheduler in InputManager

* Use _id instead of __instanceId in EventManager

* Totally remove ClassManager and __instanceId

* Fix initialization process

* Fix touch & mouse listener off check issue

* Fix id not generated issue

* Fix touch & mouse listener being removed by rejected persist node

* Improve logic
2018-05-04 13:51:21 +08:00
pandamicro 38c61c70b4 Refactor EventTarget: remove hasListenerCache, move dispatch APIs to Node (#2595)
* Improve node property setter performance

* Avoid physics sync trigger events

* Improve callbacksHandler.has performance

* Use flag instead of hasListenerCache in animation state

* Remove hasListenerCache, add event target APIs for dispatch

* Fix some issues

* Fix event target has check

* Expose EventType and LocalDirtyFlag

* Move dispatch related APIs to Node and fix issues

* Refactor event target

* Fix sub listener usage for event target

* Improve code

* Remove callbacksInvoker.has
2018-04-26 21:50:27 +08:00
pandamicro 6dfaecd86a Small improvements 2018-04-13 15:59:37 +08:00
pandamicro a0091761da Sync world mat dirty to ensure mat dirty flag reliable 2018-04-12 11:37:52 +08:00
pandamicro b1cfce2008 Improve transform sys logic 2018-04-11 14:06:27 +08:00
pandamicro 5823a23065 Add transform system to reduce matrix update overhead
Removed world-matrix-changed event, event system is too slow
2018-04-11 14:06:27 +08:00
minggo 5a05af7795 fix according review comments 2018-03-30 10:25:54 +08:00
minggo d9c0236e50 jsb adapt 2018-03-26 14:54:34 +08:00
minggo f91bab267f merge h5 and fix conflict 2018-03-26 11:05:19 +08:00
minggo 6e37e154f5 JSB adaption 2018-03-26 10:54:09 +08:00
pandamicro 9b28a74856 Fix Director deprecated API issue 2018-03-23 10:08:48 +08:00
pandamicro 0fb074ec82 Cleanup old deprecated APIs 2018-03-22 16:58:55 +08:00
pandamicro 259f1c565a Cleanup View APIs 2018-03-22 16:24:32 +08:00
Cocos Ass 4ca7a671ce add Chinese note to 2.0 scripts
add Chinese note to 2.0 scripts
2018-03-22 14:42:13 +08:00
pandamicro 247ae1ff19 Cleanup Director events 2018-03-14 09:50:32 +08:00
pandamicro 77febbfe3d Merge branch 'master' into next 2018-03-13 15:07:21 +08:00
yinkaile 22a1e2994a 1. support camera sort
2. support camera culling mask with node group
3. add MAIN_CAMERA to Canvas
2018-03-09 16:12:00 +08:00
pandamicro 979ffb587a Fix purgeDirector leak 2018-02-28 16:48:43 +08:00
pandamicro 6b839d7363 Deprecate view.setViewPortInPoints & remove Director animation interval 2018-02-28 11:07:16 +08:00
pandamicro 0ace75f372 Fix removed function usage in director 2018-02-21 09:49:19 +08:00
pandamicro df96354437 Remove dependency of cc._Class from Director 2018-02-12 18:09:49 +08:00
pandamicro e1d173da1c Review Director APIs 2018-02-09 10:07:01 +08:00
pandamicro 0fad231405 Fix renderer issue 2018-02-08 14:59:20 +08:00
Jare Guo a6fb92ad90 updating license 2018-02-01 09:38:54 +08:00
pandamicro 027274708f Fix issues caused by merging master 2018-01-16 17:28:05 +08:00
pandamicro 7712da14f5 Merge remote-tracking branch 'fireball/master' into next 2018-01-15 17:51:33 +08:00
pandamicro 0b307fe70a Fix event manager not enabled issue 2018-01-12 14:11:35 +08:00
yinkaile 2efc147fe2 Merge branch 'next' of github.com:fireball-x/engine into next
# Conflicts:
#	cocos2d/core/CCDirectorCanvas.js
#	cocos2d/core/CCDirectorWebGL.js
#	cocos2d/core/base-nodes/CCSGNode.js
#	cocos2d/core/base-nodes/CCSGNodeBaseRenderCmd.js
#	cocos2d/core/sprites/CCSGSpriteWebGLRenderCmd.js
#	cocos2d/core/sprites/CCScale9SpriteWebGLRenderCmd.js
#	cocos2d/particle/CCParticleSystem.js
2017-12-26 16:11:50 +08:00
yinkaile 5e78d1df2e remove unused code 2017-12-26 14:30:07 +08:00
pandamicro 8cf1591e3a Use cc.renderer to point at new renderer 2017-12-25 14:02:15 +08:00
Jare Guo 87304f287a Merge pull request #2200 from cocos-creator/v1.7-release
sync branch
2017-12-21 15:47:24 +08:00
knoxHuang f85d440371 add deprecated to getWinSizeInPixels 2017-12-21 10:07:22 +08:00
knoxHuang 81d0bd8f95 update getWinSizeInPixels API for fireball/issues/6717 2017-12-19 16:22:20 +08:00
Jare Guo e57ee27447 Merge branch 'v1.7-release' into v1.7
# Conflicts:
#	cocos2d/core/editbox/CCSGEditBox.js
#	cocos2d/core/platform/CCInputManager.js
#	cocos2d/core/videoplayer/CCSGVideoPlayer.js
2017-12-13 14:39:10 +08:00
knoxHuang e8b6d937d2 fix layout child node change in sequence, not update bug 2017-11-30 14:08:54 +08:00
knoxHuang 96e51fbee2 gradually remove eventManager and inputManager for fireball/issues/6240 2017-11-30 11:19:32 +08:00
pandamicro 5c2dc18957 Replace renderer 2017-10-11 14:28:43 +08:00
pandamicro 1abfab8621 Refactor textureCache to textureUtil, only cache texture to loader 2017-10-06 17:53:07 +08:00