Commit Graph

183 Commits

Author SHA1 Message Date
pandamicro e9be28d94e Add CLEANUP_IMAGE_CACHE macro to clear image src after loading (#2993)
* Add CLEANUP_IMAGE_CACHE macro to clear image src after loading

* Fix API doc
2018-07-18 17:12:32 +08:00
pandamicro 76c3182989 Make async loading working (#2990)
* Make async loading working

* small modifs
2018-07-18 00:15:01 +08:00
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 aff5345cfd Merge remote-tracking branch 'origin/master' into next 2018-07-17 15:49:38 +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 bc071a0ff0 Fix issues (#2960)
* Fix EVENT_ENGINE_INITED callback not invoked issue

* Fix redo making disabled component enter render flow
2018-07-10 16:47:17 +08:00
pandamicro 60f5af3811 Fix EVENT_ENGINE_INITED callback not invoked issue (#2957) 2018-07-10 14:33:51 +08:00
Jare Guo 056a6f931a Merge 1.9
# Conflicts:
#	cocos2d/core/load-pipeline/audio-downloader.js
2018-07-04 22:51:28 +08:00
PP 0b8f0eddf4 fix ccgame bug (#2930) 2018-07-02 11:11:37 +08:00
黄家辉 44fff0d114 a little modify (#2929)
s
2018-07-02 10:35:27 +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 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
黄家辉 832c3f93ce fixed the game EVENT_HIDE and SHOW callback twice issue (#2878) 2018-06-20 14:06:07 +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
James Chen 68e635383b Uses setPreferredFramesPerSeconds to control FPS for JSB. (#2696)
* Uses setPreferredFramesPerSeconds to control FPS for JSB.

* Empty implement for window.scroll .
2018-05-17 10:03:10 +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 99712484b1 Fix dumb issues 2018-04-20 13:50:42 +08:00
pandamicro b1c84ac0d4 Fix global canvas undefined issue in JSB 2018-04-20 11:57:46 +08:00
pandamicro 14a555e0fb Merge remote-tracking branch 'fireball/master' into next 2018-04-16 19:14:08 +08:00
yinkaile 6f7c4d724a Merge remote-tracking branch 'refs/remotes/fireball/next'
Conflicts:
	cocos2d/core/renderer/canvas/renderers/utils.js
2018-04-02 10:39:53 +08:00
yinkaile 0e0024fcbe adjust assembler requirements 2018-03-30 15:23:50 +08:00
minggo 02bc807ebf merge and fix conflict 2018-03-30 10:34:50 +08:00
yinkaile 7386f10302 fixed addPersistRootNode 2018-03-28 11:52:51 +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 0fb074ec82 Cleanup old deprecated APIs 2018-03-22 16:58:55 +08:00
Jare Guo 3210895e46 Merge 1.9
# Conflicts:
#	cocos2d/core/CCGame.js
#	cocos2d/core/load-pipeline/pack-downloader.js
#	cocos2d/core/platform/CCObject.js
2018-03-22 13:45:42 +08:00
minggo 0863363f32 merge from h5 2018-03-21 09:56:04 +08:00
pandamicro 8cf3e3114e Add antialias macro, cherry pick from next. 2018-03-20 20:02:29 +08:00
knox 95de04f08b refine code 2018-03-18 15:49:30 +08:00
knox 9e73f50620 add wechatgame subdomian 2018-03-17 12:47:14 +08:00
pandamicro 9a61e299db Add antialias macro 2018-03-15 15:17:20 +08:00
pandamicro 77febbfe3d Merge branch 'master' into next 2018-03-13 15:07:21 +08:00
pandamicro 4e47017aa4 Merge branch 'v1.9' 2018-03-13 11:54:54 +08:00
James Chen 1523d3c91d Update code for creator 2.0 native. 2018-03-12 13:50:50 +08:00
Jare Guo eb7f7ad66e Merge pull request #2408 from cocos-creator/v1.8-release
sync branch
2018-03-07 12:48:23 +08:00
pandamicro 2198aa52c8 Add canvas renderer basic architecture 2018-02-28 10:29:43 +08:00
pandamicro 83127f336d Set webgl option antialias to false 2018-02-26 17:29:24 +08:00
pandamicro f48bd63c39 Add explanation for antialias option 2018-02-24 17:50:06 +08:00
pandamicro 8dee57c7e3 Exclusivly set webgl antialias option to false 2018-02-24 17:45:02 +08:00
Jare Guo 6c809263e6 Merge 1.8 2018-02-24 14:58:57 +08:00
pandamicro ba6e8f11a3 Remove cc._renderType, cc._canvas, cc.container 2018-02-24 11:31:51 +08:00
pandamicro 4e94f38591 Remove Canvas forward renderer in render engine 2018-02-12 14:29:40 +08:00
Jare Guo 992b74f0ac merge bricks (#2328)
* support bk game

* update code

* update code

* update code

* update code

* refine code

* update code

* update code

* update code
2018-02-09 10:12:44 +08:00
pandamicro e1d173da1c Review Director APIs 2018-02-09 10:07:01 +08:00
Jare Guo 6810732ec3 fix onShow/onHide on wechat mini game 2018-02-02 13:41:15 +08:00
Jare Guo a6fb92ad90 updating license 2018-02-01 09:38:54 +08:00
Jare Guo bd15543093 updating license: Chukong Aipu -> Xiamen Yaji 2018-01-31 17:51:49 +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