mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 09:27:37 +00:00
Update CHANGELOG-v3.60.md
This commit is contained in:
parent
30ef13291c
commit
09ac0e9200
1 changed files with 12 additions and 2 deletions
|
@ -69,7 +69,7 @@ We have updated the version of Matter Physics to the latest v0.18 release. This
|
|||
|
||||
The Phaser 3.60 Tween system has been recoded to help with performance and resolving some of its lingering issues and unifying the Tween events and callbacks.
|
||||
|
||||
The following are breaking changes with regard to the event and callback parameter orders:
|
||||
The following are breaking changes:
|
||||
|
||||
* The `TweenOnUpdateCallback` now has the following parameters: `tween`, `targets`, `key` (the property being tweened), `current` (the current value of the property), `previous` (the previous value of the property) and finally any of the params that were passed in the `onUpdateParams` array when the Tween was created.
|
||||
* The `TweenOnYoyoCallback` now has the following parameters: `tween`, `targets`, `key` (the property being tweened), `current` (the current value of the property), `previous` (the previous value of the property) and finally any of the params that were passed in the `onYoyoParams` array when the Tween was created.
|
||||
|
@ -77,8 +77,14 @@ The following are breaking changes with regard to the event and callback paramet
|
|||
* `Tween.stop` has had the `resetTo` parameter removed from it. Calling `stop` on a Tween will now prepare the tween for immediate destruction. If you only wish to pause the tween, see `Tween.pause` instead.
|
||||
* Tweens will now be automatically destroyed by the Tween Manager upon completion. This helps massively in reducing stale references and memory consumption. However, if you require your Tween to live-on, even after playback, then you can now specify a new `persists` boolean flag when creating it, or toggle the `Tween.persist` property before playback. This will force the Tween to _not_ be destroyed by the Tween Manager, allowing you to replay it at any later point. The trade-off is that _you_ are now entirely responsible for destroying the Tween when you are finished with it, in order to free-up resources.
|
||||
|
||||
The following are further changes within the Tween system:
|
||||
The following are further updates within the Tween system:
|
||||
|
||||
* `Tween.pause` is a new method that allows you to pause a Tween. This will emit the PAUSE event and, if set, fire the `onPause` callback.
|
||||
* `Tween.resume` is a new method that allows you to resume a paused Tween. This will emit the RESUME event and, if set, fire the `onResume` callback.
|
||||
* There is a new `TweenOnPauseCallback` available when creating a Tween (via the `onPause` property). This comes with associated `onPauseParams` and `onPauseScope` properties, too, like all other callbacks and can also be added via the `Tween.setCallbacks` method. This callback is invoked if you pause the Tween.
|
||||
* There is a new `TweenOnResumeCallback` available when creating a Tween (via the `onResume` property). This comes with associated `onResumeParams` and `onResumeScope` properties, too, like all other callbacks and can also be added via the `Tween.setCallbacks` method. This callback is invoked if you resume a previously paused Tween.
|
||||
* The property value of a Tween can now be an array, i.e. `x: [ 100, 300, 200, 600 ]` in which case the Tween will use interpolation to determine the value.
|
||||
* You can now specify an `interpolation` property in the Tween config to set which interpolation method the Tween will use if an array of numeric values have been given as the tween value. Valid values includes `linear`, `bezier` and `catmull` (or `catmullrom`), or you can provide your own function to use.
|
||||
* You can now specify a `scale` property in a Tween config and, if the target _does not_ have a `scale` property itself (i.e. a GameObject) then it will automatically apply the value to both `scaleX` and `scaleY` together during the tween. This is a nice short-cut way to tween the scale of Game Objects by only specifying one property, instead of two.
|
||||
* `killTweensOf(targets)` now supports deeply-nested arrays of items as the `target` parameter. Fix #6016 (thanks @michalfialadev)
|
||||
* `killTweensOf(target)` did not stop target tweens if called immediately after tween creation. Fix #6173 (thanks @michalfialadev)
|
||||
|
@ -87,6 +93,10 @@ The following are further changes within the Tween system:
|
|||
* Calling `Tween.play` immediately after creating a tween with `paused: true` in the config wouldn't start playback. Fix #6005 (thanks @MartinEyebab)
|
||||
* Fixed an issue where neither Tweens or Timelines would factor in the Tween Manager `timeScale` value unless they were using frame-based timing instead of delta timing.
|
||||
* The first parameter to `Tween.seek`, `toPosition` now defaults to zero. Previously, you had to specify a value.
|
||||
* The `TweenBuilder` now uses the new `GetInterpolationFunction` function internally.
|
||||
* The `TweenBuilder` has been optimized to perform far less functions when creating the TweenData instances.
|
||||
* The keyword `interpolation` has been added to the Reserved Words list and Defaults list (it defaults to `null`).
|
||||
* The keyword `persists` has been added to the Reserved Words list and Defaults list (it defaults to `false`).
|
||||
|
||||
### New Features
|
||||
|
||||
|
|
Loading…
Reference in a new issue