forked from cocoscodeide/cocos2d-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCHANGELOG
187 lines (178 loc) · 11.7 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
Cocos2d-JS-v3.0 beta @ May.23, 2014
* Refactored actions to make it more friendly and easy-to-use.
* Integrated Spine skeleton animation feature.
* Renamed constants of ProgressTimer, Scale9Sprite, TMXLayerInfo, Node, ParticleSystem for maintainability.
* Modified mouseMove event behavior of cc.inputManager to compatible with Cocos2d-x
* Modified cc.game.run to receive a canvas id as parameter.
* Added local audio file playing from 'file://' origin.
* Added local images file displaying from 'file://' origin.
* Refactored cc.TMXLayer's setTileAt etc functions to support point or x,y as their parameters.
* Added a check to cc.Sprite and cc.SpriteFrame to avoid its texture rect out of bounds.
* Added a check to cc.SpriteFrame to avoid cc.loader release invalid sprite frame file.
* Made cc.Touch return copies of point.
* Made the default of cc.Color alpha value is 255 to avoid cc.Sprite's setColor is invalid.
* Optimized cc.Node.sortAllChildren for better performance.
* Added warning of cc.Texture2D if it has an invalid texture.
* [JSB]Enabled baseline compiler of SpiderMonkey to boost the performance of JSB on Android, mostly it is really faster than Lua.
* [JSB]Upgraded SpiderMonkey to v28.
* [JSB]Re-enabled Plugin-X in JSB
* [JSB]Added `cc.AssetsManager` for resources hot updating and bound all necessary classes in JSB.
* [JSB]Upgraded jsc file compiler tool with SpiderMonkey v28.
* [JSB]Android back button support.
* [JSB]Added `setDebugBones` and `setDebugSolots` functions to `sp.Skeleton`
* [JSB]Added `repeat`, `repeatForever`, `easing` functions to `cc.ActionInterval`
* [JSB]Bound `ccui.RichText` in JSB.
* [JSB]Added `getBlendFunc` and `setBlendFunc` bindings in JSB
* [JSB]Added Spine, Cocosbuilder, websocket, socketio in templates by default.
* [JSB]Added cc.Node's getBoudingBoxToWorld function.
* [JSB]Support inheritance for gui components.
* [JSB]Implemented reflexion from Javascript to JAVA static class functions.
* [JSB]Support x, y parameter in position setting functions of cc.TMXLayer.
* [JSB]Added `game_on_hide` and `game_on_show` events.
* Bugs fix:
1. Fixed a bug of cc.winSize that it returns incorrect value when using setDesignResolution.
2. Added a check to cc._setup to avoid double invocation.
3. Fixed a bug of cc.TMXMapInfo that its tile's property id is incorrect.
4. Fixed a bug of cc.Scale9Sprite that its CascadeColor and CascadeOpacity are invalid.
5. Fixed a bug of ccs.UILoadingBar which its barRendererScaleChangedWithSize is incorrect.
6. Added some forgotten files to build.xml for minimize core.
7. Corrected a mistake of renderMode default value in CCBoot.js.
8. Fixed a bug of ccui.Layout's draw function that its scaleX, scaleY value is incorrect.
9. Fixed a bug of cc.Audio's stopMusic function.
10. Fixed a bug of TextureCache that it can't remove image's event handler.
11. Fixed ClippingNode's DrawNode stencil bug on Canvas.
12. Fixed a typo 'cc.radiansToDegress' function to 'cc.radiansToDegrees'.
13. Fixed a bug of ccui.ImageView that its setSize is invalid when the picture without pre-load.
14. Fixed a bug of cc.ParticleSystem that it throws a error when create from CocosBuilder.
15. Fixed a bug of cc.LabelAtlas that it can't display its children.
16. Fixed a bug of cc.fontLoader that it can't load custom font.
17. Fixed a bug of ccui.Widget that its setOpacity is invalid.
18. Fixed a bug of cc.Node that it transform value is incorrect when a node skew to a special value.
19. [JSB]Fixed an issue of jsb boot process that `cc._setup` get called twice.
20. [JSB]Fixed `cc.TextureCache`'s null check issue.
21. [JSB]Fixed an issue of `ccui.Widget`'s `getChildByTag` function.
22. [JSB]Fixed TileMapTests's graphic issue of Z vertex test.
23. [JSB]Fixed a bug of `cc.Animation.create`.
24. [JSB]Fixed behavior inconsistence of `cc.plistLoader`.
25. [JSB]Fixed a bug of `cc.view.setDesignResolutionSize`.
26. [JSB]Fixed API inconsistence for cc.view.
27. [JSB]Fixed API inconsistence for constants.
28. [JSB]Fixed API inconsistence of EventMouse and EventTouch.
Cocos2d-JS-v3.0 alpha2 @ April.14, 2014
* Minimize the size of core from 254k to 113k after google closure advanced compiling.
* Make engine classes can be constructed via `new` with the same parameters as create functions.
* Make engine classes extendable directly via ctor.
* Made cc.DrawNode support some DrawingPrimitive's drawing function on WebGL mode.
* cc.Sprite supports creating a sprite through external URL.
* Add SocketIO to framework's external.
* Add the warning information to notice developers that their project.json cannot be loaded or parsed.
* Add retina display support to cc.Editbox.
* cc.Node's pauseSchedulerAndActions and resumeSchedulerAndActions are deprecated, please use pause and resume instead.
* Add render mode checking to 3D action classes.
* Use undefined check in cc.loader for better performance.
* Sync cc.eventManager to the latest version of Cocos2d-x v3.0 final.
* ccui.Layout's doLayout function has been set to private function "_doLayout".
* Rename all Uppercase functions to lowercase in CCMacro.js.
* Add more necessary GL constants in engine.
* Rename ccs.comAttribute's `getCString` function to `getString`.
* [JSB]Make engine classes extendable via ctor in JSB.
* [JSB]Fix cc.DrawNode API inconsistence between Cocos2d-html5 and JSB.
* [JSB]Rebind cc.fileUtils for JSB only APIs.
* [JSB]Make JS level subclass of cc.Component support override of onEnter/onExit/update functions.
* [JSB]Update precompiled SpiderMonkey to support iOS 64 bit devices.
* [JSB]Fix constants inconsistence between Cocos2d-html5 and JSB.
* [JSB]Add macro functions in CCMacro.js into JSB.
* [JSB]Add `tag` property to cc.Action.
* [JSB]Add `boundingBox` function to ccs.Armature.
* [JSB]Add `textureLoaded` function to cc.Sprite.
* [JSB]Add `allLayers` function to cc.TMXTiledMap.
* [JSB]Refactor `cc.EventMouse`'s `getCursorX`, `getCursorY`, `setCursorPosition` to `getLocationX`, `getLocationY`, `setLocation`, and add `getLocation` function.
* [JSB]Add `getLocationX`, `getLocationY` to `cc.Touch`.
* Bugs fix:
1. Fixed ccs.comAttribute API incompatible issue
2. Fixed a bug of CocoStudio's data reader that getting isTween value is incorrect when the attribute value is false.
3. Fixed a bug of Sprite that it stops to work when its texture doesn't preload and its parent is a SpriteBatchNode
4. Fixed a bug in CCBoot.js that console.error is invalid on firefox.
5. Fixed a bug of cc.LabelBMFont that it's multiline works incorrectly.
6. Fixed a bug that Touches event doesn't work in release mode on IE browser.
7. Fixed a bug that cc.winSize has not been reset after cc.view.setDesignResolutionSize.
8. Fixed typo error in ccui.Widget.TOUCH_BEGAN
9. Fixed a bug of cc.MenuItemSprite.create that its can't create item when the length of arguments equals 4.
10. Fixed a bug of cc.loader that it need to set value before calling the callback.
11. Fixed a bug of cc.log that it doesn't work in IE9
12. Fixed IE incompatible issue with __lookupGetter__
13. Fixed a bug of cc.Node that it returns a reference of _position in getPosition
14. Fixed a bug of cc.ClippingNode that its _super is undefined
15. Fixed a bug of inputManager's touch event in IE browser
16. Add callback null check to avoid bugs in cc.textureCache.addImage.
17. [JSB]Fix ccui.Widget's addNode function no longer exists bug in JSB.
18. [JSB]Fix a bug that main loop get stated twice.
19. [JSB]API inconsistence of ccs.ArmatureAnimation.play fixed.
20. [JSB]Fix JSB compiling issues by removing `DEBUG` preprocessor macro.
21. Fixed some comment errors of framework.
* Known Issues:
1. [JSB]Property's getter/setter functions can not be overrided automatically in custom subclasses.
2. [JSB]CocoStudio's scene reloading may cause memory release issues and crash.
3. [JSB]OpenGL test is not functionnable in JSB.
4. EventListener is not extendable.
5. [JSB]PhysicsSprite is not updating with physics node.
6. [JSB]ccui.TextField's is not responding to keyboard backspace button.
Cocos2d-JS-v3.0 alpha @ March.15, 2014
* Refactor some properties of all rendering classes with getter setter for providing javascript user friendly APIs.
* Provide `attr` function for cc.Node and its descendants to permit modify multiple properties at the same time with a key-value object.
* Refactor foundational data structures for better maintainability.
* Add event manager to cocos2d-html5, all events are dispatched via cc.eventManager to event listener.
* Refactor cc.Application to cc.game.
* Refactor singleton Classes to javascript object.
* Refactor all createWithXXX functions into unified create function with different parameters.
* Use `moduleConfig.json` to config the paths of engine scripts.
* `cocos2d.js` is replaced with `project.json`.
* Refactoring cc.loader.
* CocoStudio GUI updated to 3.0, and ccs prefix of UI widgets have been changed to ccui.
* CocoStudio v1.3.0 has been supported in v3.0.
* richText has been supported in v3.0.
* Use `cc.BuilderReader.registerController` to register controller of ccb.
* Add `cc.path` to handle operations of file path.
* Add `cc.async` to handle async operations.
* Add cc.NodeGrid in v3.0.
* Replace `replaceWithScene` and `runWithScene` with `runScene`.
* move sys.xxx to cc.sys.xxx.
* Refactor CCEGLView.js for better maintainability.
* Refactor CCScheduler.js for better maintainability.
* Remove arguments.callee which is forbidden in ECMAScript strict mode.
* Refactor Array clean function for better performance.
* Refactor some functions about array operation.
* Refactor FadeIn/FadeOut to fix a bug that it always start from/to 255.
* Rewrite functions in CCNS.js with regex.
* Move CCFormatHelper and CCNS content into CCCommon.js.
* Refactor cc.Screen to support all browsers.
* Add retina display support for Apple devices to cc.view.
* Add "allLayers" function to cc.TMXTiledMap.
* Make cc.p and cc.size support two types of parameters.
* cc.DrawNode supports all functions of cc.DrawingPrimitive on Canvas mode.
* WebAudioEngine is supported on iOS now.
* Use event on cc.canvas to make full screen.
* Add a browser white list that support multiple audio playback at the same time.
* Removed in/hasOwnProperty usage in engine for better performance.
* Refactoring CCCommon.js, delete some unused functions, rename some functions for better maintainability.
* Add analytics plugin protocol ,Flurry plugin and ProtocolAds.js plugin protocol.
* Arguments length check replaced by undefined check for better performance.
* Fix legacy Function.prototype.bind support.
* Bugs fix:
1. Avoid CCLabelTTF enter in infinite loop while character's width larger than the dimension width
2. Add jsDoc Flags to cc.NodeRGBA and cc.LayerRGBA
3. Fixed a bug that Schedule doesn't restart when widget is re-added after being removed
4. Correction of split logic in CCLabelTTF
5. Fixed a bug that armature animation does not display correctly on canvas mode
6. Correct gui widget clone functions
7. Fixed a bug of cc.SpriteFrameCache that filePath is needed in `loadedFileNames`
8. Add a condition check to avoid texture out of range bug
9. Fixed a bug of cc.Editbox that its position is incorrect when its parent node isn't root node.
10. Fixed a SimpleAudioEngine's state error.
11. Fixed a bug of cc.TMXTileMap that its `_tileProperties` should be a dictionary object
12. Fixed a bug of cc.DrawNode that it need to deep-copy verts in `drawPoly`
13. Fixed a bug of UILabelBMFont that variable `_strStringValue` should be `_stringValue`
14. Fixed a bug in SceneReader's `setPropertyFromJsonDict` function
15. Fixed a bug when margin not set in ccs.Margin
16. Fixed a bug of cc.TMXLayer that its `removeChild` works incorrectly.
* Known Issues: