forked from cocos2d/cocos2d-js
-
Notifications
You must be signed in to change notification settings - Fork 3
/
CHANGELOG
321 lines (304 loc) · 20.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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
ChangeLog:
Cocos2d-JS-v3.0 RC2 @ Aug.11, 2014
* Refactored Cocos UI for more stable and friendly user experience.
* Upgraded Cocostudio reader to support version 1.2 - 1.5.x.
* Upgraded Cocostudio Armature animation from Cocos2d-x v3.2.
* Added back 2.x createWithXXX functions and deprecate all create/createWithXXX functions.
* Merged cc.NodeRGBA and cc.LayerRGBA to cc.Node.
* Fixed ctor functions bugs to support new construction.
* Refactored cc.Sprite's setColor to improve its performance.
* Renamed CCAffineTransform.js's functions to lowercase started functions.
* Upgraded cc.Scale9Sprite from Cocos2d-x 3.2.
* Improved cc.LabelTTF's line break algorithms to support multi-languages.
* Made cc.RenderTexture's beginWithClear accept color value from 0-255.
* Improved implementation of all Actions lower case alias creation functions.
* Added lower case creation functions for 3d actions and progress actions.
* Added cc.sys.platform API for detecting platform.
* Upgraded HelloWorld project with v3.0 APIs.
* [JSB] Included Facebook SDK for Cocos2d-JS alpha release.
* [JSB] Supported Javascript to Objective-C reflection.
* [JSB] Supported remote image loading with cc.loader and cc.textureCache.
* [JSB] Supported inheritance of gui extension and spine extension.
* [JSB] Bound console.log function.
* Bugs fix:
1. Fixed a transform error in ccs.TransformHelp.
2. Fixed a bug of cc.MenuItemToggle that callback is not correctly initialized when using new construction.
3. Fixed a bug in cc.layer's bake function that its position is incorrect when cc.view is scaled.
4. Fixed a bug of cc.LayerMultiplex.
5. Fixed a bug of cc.TMXLayer that it can't display all map image when its type is hexagonal.
6. Fixed a bug of cc.ControlSwitch.
7. Fixed image format constant inconsistence.
8. Fixed a bug of ccui.Widget that it is invisible after popScene.
9. Correct behavior of cc.TransitionSlideInB and cc.TransitionSlideInT.
10. Fixed a bug of requestAnimFrame that it doesn't work after re-focus WeChat browser on Samsung mobile.
11. Fixed bugs of ccui.Widget and ccui.Text's clone functions.
12. Fixed a bug of ccui.Layout that its clipping area is incorrect.
13. Fixed a bug of CCBoot.js that bind function is undefined in Safari for iOS 5.1.
14. Fixed a bug of cc.WebAudio that sourceNode's playbackState is invalid on some browsers.
15. [JSB] Fixed cocos studio scene test crash issues.
16. [JSB] Bound BaseData/AnimationData/MovementData's properties.
17. [JSB] Bound cc.ReverseTime.
18. [JSB] Fixed template crash issue on iOS < 6.0.
19. [JSB] Fixed bindings generator's issue for generating lambda function.
20. [JSB] Review _ctor functions and fix bugs.
21. [JSB] Review classes inheritance ability in Javascript.
22. [JSB] Improved code style in auto bindings
23. [JSB] Fixed a bug of type conversion that empty string is converted to NULL.
24. [JSB] Fixed bugs of UILayout relative and RenderTexture test cases.
25. [JSB] Fixed a bug that cc.visibleRect isn't updated after modification of resolution policy.
26. [JSB] Fixed a bug that cc.loader.load function's callback can't retrieve the result.
27. [JSB] Fixed value inconsistence for image format constants.
28. [JSB] Renamed cc.TextFieldTTF's textFieldWithPlaceHolder to create.
29. [JSB] Fixed API inconsistence of cc.TMXTiledMap.
30. [JSB] Fixed stencil buffer disabled issue on some Android devices.
31. [JSB] Added defaultPixelFormat property definition.
32. [JSB] Fixed typo of cc.radiansToDegrees.
* Known issues:
1. [JSB] cc.ActionInterval's setSpeed and getSpeed function doesn't exist in JSB.
2. [JSB] cc.bezierAt function is not supported in JSB.
3. [JSB] jsb.AssetsManager have issues on Windows platform and iOS simulator.
Cocos2d-JS-v3.0 RC1 @ July.18, 2014
This version include some crutial bug fixes.
* Bugs fix:
1. Fix a bug that cocos console doesn't support long path on windows.
2. Fix a bug that Code IDE can't compile release mode for Android.
3. Fix a bug that usage of system font will crash on windowns.
4. Fix a bug that textures doesn't load for cocostudio projects.
5. Fix a bug that stencil buffer haven't been activated on certain android devices.
Cocos2d-JS-v3.0 RC0 @ July.3, 2014
* Added Facebook SDK plugin into Pluginx extension.
* Refactoration of gui system `ccui` for better performance, usage and maintainbility.
* Added `bake` function to `cc.Layer` to support layer baking.
* Added object pool extension: `cc.pool`.
* Added new easing functions: bezier action, quadratic actions, quartic actions, quintic actions, circle actions, cubic actions.
* Made `cc.loader` continue the counter process even if a resource failed to be loaded.
* Supported multiple property objects in `cc.Class.extend` function.
* Refactored `ccui.Widget`'s `getLeftInParent`, `getBottomInParent`, `getRightInParent`, `getTopInParent` to `getLeftBoundary`, `getBottomBoundary`, `getRightBoundary`, `getTopBoundary`.
* Refactored `cc.FadeIn.create(duration, toOpacity)` to `cc.FadeIn.create(duration)`.
* Refactroed all string access functions in `ccui` extension to `setString` and `getString`.
* Added `getContentSize` and `setContentSize` in `ccui` extension.
* Changed the default alpha value of `cc.Color` from `undefined` to 255.
* Made `cc.log` support formatted string.
* [JSB] Improved `cc.AssetsManager` with multi-thread downloading, download resuming support, compressed file support, better progression informations, possibility to retry failed assets.
* [JSB] Supported linux compilation with CMake.
* [JSB] Moved JSB only APIs: cc.fileUtils, cc.Reflection, cc.AssetsManager to `jsb` namespace for avoiding mistaken usage.
* [JSB] Made cocos console support jsc compilation in release mode.
* [JSB] Made android apps possible to be installed into sd card.
* [JSB] Made `ccui` extension's widget classes extendable.
* [JSB] Bound a complete version of `jsb.fileUtils` including search path control functions.
* [JSB] Correctly recoginze Mac OS X as a desktop platform and activate keyboard and mouse capabilities.
* [JSB] Supported mouse event in JSB.
* [JSB] Made `cc.MenuItemImage` support sprite frame name as construction parameter.
* [JSB] Made `cc.NodeRGBA` extendable in JSB.
* [JSB] Bound `ccs.AnimationData` and `ccs.MovementData`.
* [JSB] Added `getUserData` and `setUserData` for `cc.Node`.
* Bugs fix:
1. Fix bugs on creating sequence objcet or spawn object using new method.
2. Fix a bug that `ccui.LoadingBar`'s `setPercent` function will crash when its texture is in a plist file and scale9Enabled is true.
3. Fixed a bug of `cc.audioEngine` that it crashs when audio isn't correctly loaded and its duration is infinity.
4. Correction of the calculation of `cc.visibleRect`.
5. Fix `cc.Skin`'s bounding box calculation for canvas rendering.
6. Fix an issue that `cc.TextureCache` doesn't handle loaded texture in some case.
7. Fix an issue that texture rect could be zero sized in `initWithFile` function of `cc.Sprite`.
8. Fix a bug on inverted ClippingNode with DrawNode as stencil in Canvas render mode.
9. Fix a bug that `cc.SpriteFrame` didn't support initialization with texture name parameter.
10. Fix a bug on `ccs.ArmatureAnimation`'s loop parameter.
11. Fix a bug that `cc.JumpTo`'s `_delta` position calculation is incorrect.
12. Fix a bug of `cc._audioLoader` that it doesn't work when it failed to load an audio file.
13. [JSB] Fix a bug that mouse button always equals left button during mouse move event.
14. [JSB] Fix a bug that `showFPS` configuration is ignored.
15. [JSB] Fix a bug that key correspondances are incorrect for keyboard event on Android.
16. [JSB] Fix a bug that `ccui.Widget`'s `onEnter` function can't be overrided in JSB.
17. [JSB] Fix a bug that some `init` function may be invoked twice during initialization.
18. [JSB] Fix a bug that `cc.Layer`'s `init` function is not invoked during initialization.
19. [JSB] Bound `SpriteFrame`'s constructor to support `new` construction in JSB.
20. [JSB] Fix cc.REPEAT_FOREVER constant value conflit between html5 engine and JSB.
21. [JSB] Fix some property inheritance issues in JSB.
22. [JSB] Fix a bug that `ccui.Button`'s `getTitleColor` function doesn't return the correct value.
23. [JSB] Fix ChipmunkTest/buoyancy test case crash issue with unreleased collision handler.
24. [JSB] Fix a bug that `cc.audioEngine.end()` release the singleton audio engine object.
25. [JSB] Support all method for XMLHttpRequest including GET, POST, PUT, DELETE.
* Known issues:
1. [JSB] `cc.ActionInterval`'s `setSpeed` function is not supported yet.
2. [JSB] `cc.ActionInterval`'s `easing` function doesn't support `EaseBezierAction` yet.
3. [JSB] `cc.AssetsManager` may fail to create and download files on windows and iOS simulator (please test on real devices).
4. [JSB]CocoStudio's scene reloading may cause memory release issues and crash.
5. [JSB]ccui.TextField's is not responding to keyboard backspace button.
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: