Commit graph

15108 commits

Author SHA1 Message Date
Richard Davey
c9193d038f Update CHANGELOG.md 2020-09-04 11:49:19 +01:00
Richard Davey
858ae68841 Removed startFrame, chain can take arrays, delayedPlay rename, playAfterRepeat method and playAfterDelay method. 2020-09-04 11:49:16 +01:00
Richard Davey
afef6da59c Exposed all of the new animation methods on a Sprite level 2020-09-04 11:48:17 +01:00
Richard Davey
1d798441f3 Support repeat count for stopping 2020-09-04 11:40:32 +01:00
Richard Davey
acac51bf39 Update CHANGELOG.md 2020-09-04 00:02:54 +01:00
Richard Davey
1a4b5b2779 AnimationManager.createFromAseprite is a new method that allows you to use animations created in the Aseprite editor directly in Phaser. 2020-09-04 00:02:51 +01:00
Richard Davey
5db6cba4ce Update CHANGELOG.md 2020-09-03 17:56:25 +01:00
Richard Davey
1515357039 Lots of updates (see full description)
* `Component.Animation.timeScale` is a new public property that replaces the old private `_timeScale` property.
* `Component.Animation.delay` is a new public property that replaces the old private `_delay` property.
* `Component.Animation.repeat` is a new public property that replaces the old private `_repeat` property.
* `Component.Animation.repeatDelay` is a new public property that replaces the old private `_repeatDelay` property.
* `Component.Animation.yoyo` is a new public property that replaces the old private `_yoyo` property.
* `Component.Animation.inReverse` is a new public property that replaces the old private `_reverse` property.
* `Component.Animation.startAnimation` is a new public method that replaces the old private `_startAnimation` method.
* The `Component.Animation.getProgress` method has been fixed so it will return correctly if the animation is playing in reverse.
* The `Component.Animation.remove` method will now always be called when an animation is removed, not just once.
* The `Component.Animation.getRepeat` method has now been removed. You can get the value from the `repeat` property.
* The `Component.Animation.setRepeatDelay` method has now been removed. You can set the value using the `repeatDelay` config property, or changing it at run-time.
* `Component.Animation.complete` is a new method that handles the completion in animation playback.
* The `Component.Animation.setTimeScale` method has now been removed. You can set the value using the `timeScale` config property, or changing it at run-time.
* The `Component.Animation.getTimeScale` method has now been removed. You can read the value using the `timeScale` property.
* The `Component.Animation.getTotalFrames` method has been fixed and won't error if called when no animation is loaded.
* The `Component.Animation.setYoyo` method has now been removed. You can set the value using the `yoyo` config property, or changing it at run-time.
* The `Component.Animation.getYoyo` method has now been removed. You can read the value using the `yoyo` property.
2020-09-03 17:56:22 +01:00
Richard Davey
13601ad31b Removed completeAnimation, load and setFrame and updated other methods to use new component properties. 2020-09-03 17:44:46 +01:00
Richard Davey
96bc2e89d3 Removed load and fixed staggerPlay 2020-09-03 17:42:10 +01:00
Richard Davey
b4b5338f28 Added playReverse, delayedPlay and stop methods and better docs. 2020-09-03 17:38:36 +01:00
Richard Davey
33cc87121c The BuildGameObjectAnimation function now uses the PlayAnimationConfig object to set the values. 2020-09-03 17:37:21 +01:00
Richard Davey
050c2a61b6 Fixed data-type 2020-09-03 17:36:36 +01:00
Richard Davey
b9e5f3e9bc GroupCreateConfig, which is used when calling Group.createMultiple or Group.createFromConfig, can now accept the following new properties: setOrigin: { x, y, stepX, stepY } which are applied to the items created by the Group. 2020-09-03 17:36:05 +01:00
Richard Davey
f505f6a3e3 Actions.setOrigin will now call updateDisplayOrigin on the items array, otherwise the effects can't be seen when rendering. 2020-09-03 17:34:16 +01:00
samme
803c300ae4 Add ArcadeWorldConfig.fixedStep 2020-09-03 07:32:44 -07:00
Richard Davey
15c6e7718c New Animation events 2020-09-03 15:04:09 +01:00
Richard Davey
28c6635ea3 Utils.Array.SortByDigits is a new function that takes the given array of strings and runs a numeric sort on it, ignoring any non-digits. 2020-09-03 15:01:55 +01:00
Richard Davey
bba8285665 Return type fix 2020-09-03 11:27:12 +01:00
Richard Davey
0ba7de7a60 Deps update 2020-09-03 09:41:23 +01:00
Richard Davey
793359cab6 Update CHANGELOG.md 2020-09-02 22:58:40 +01:00
Richard Davey
52c7406aa8 Update CHANGELOG.md 2020-09-02 22:55:54 +01:00
Richard Davey
d92195a8b8 Default rotation as well 2020-09-02 22:55:51 +01:00
Richard Davey
2d65ff169e Update CHANGELOG.md 2020-09-02 22:50:30 +01:00
Richard Davey
1562525a51 When using Camera.setRenderToTexture its zoom value would be applied twice. Fix #4221 2020-09-02 22:50:27 +01:00
Richard Davey
e6cfacb3a4 Update CHANGELOG.md 2020-09-02 22:27:43 +01:00
Richard Davey
cf17dbe7e9 Previously, the easeParams array within a Tweens props object, or a multi-object tween, were ignored and it was only used if set on the root Tween object. It will now work correctly set at any depth. Fix #4292 2020-09-02 22:27:40 +01:00
Richard Davey
cff035f596 Merge branch 'master' of https://github.com/photonstorm/phaser 2020-09-02 21:52:39 +01:00
Richard Davey
97c31b71af Update CHANGELOG.md 2020-09-02 21:52:37 +01:00
Richard Davey
5e9b629a97
Merge pull request #5284 from samme/feature/scene-resume-wake-reset-keys
Reset keys when scene sleeps or pauses
2020-09-02 21:50:42 +01:00
Richard Davey
070fc70fe7 Lint fix 2020-09-02 18:07:21 +01:00
Richard Davey
05c4a3304f Update CHANGELOG.md 2020-09-02 18:01:31 +01:00
Richard Davey
e01f310d16 Added new properties, support for config playback and better delayed handling 2020-09-02 17:56:09 +01:00
Richard Davey
a2f0c2e7e3 Added getTotalFrames and calculateDuration methods. 2020-09-02 17:43:44 +01:00
Richard Davey
90fbb0f13d Updated jsdocs for play to show it can take the new config 2020-09-02 17:41:43 +01:00
Richard Davey
fe74eb70f7 Create PlayAnimationConfig.js 2020-09-02 17:41:23 +01:00
Richard Davey
f58f94ecf6 Formatting 2020-09-02 14:42:26 +01:00
Richard Davey
ace0ee7bab Fixed JSDoc event names 2020-09-02 12:34:58 +01:00
Richard Davey
6e181eda5b Update CHANGELOG.md 2020-09-02 12:24:29 +01:00
Richard Davey
8f8a90bedd Utils.Array.StableSort has been recoded. It's now based on Two-Screens stable sort 0.1.8 and has been updated to fit into Phaser better and no longer create any window bound objects. The inplace function has been removed, just call StableSort(array) directly now. All classes that used StableSort.inplace have been updated to call it directly. 2020-09-02 12:24:27 +01:00
Richard Davey
27fd496e8f Updated to stablesort 0.1.8 and recoded to fit our style. Removed inplace static function. 2020-09-02 12:21:36 +01:00
Richard Davey
0d934c730e Every single Tilemap.Component function has now been made public. This means you can call the Component functions directly, should you need to, outside of the Tilemap system. 2020-09-02 11:54:24 +01:00
Richard Davey
09f11b84e6 Merge branch 'master' of https://github.com/photonstorm/phaser 2020-09-02 11:14:47 +01:00
Richard Davey
a12fb3e93f Update CHANGELOG.md 2020-09-02 11:14:42 +01:00
Richard Davey
2980a416c9
Merge pull request #5278 from samme/fix/arcade-body-resetFlags
Reset flags when resetting an Arcade Body
2020-09-02 11:11:34 +01:00
samme
288d023bab Reset keys when scene sleeps or pauses #5281 2020-09-01 12:42:57 -07:00
Richard Davey
5d565d1637 Update CHANGELOG.md 2020-09-01 20:28:45 +01:00
Richard Davey
07865a5823 Final set of namespace changes. Fix #5062 2020-09-01 20:28:42 +01:00
Richard Davey
9e2a8f4271 Update CHANGELOG.md 2020-09-01 18:56:04 +01:00
Richard Davey
d2cc809fdb Exported functions to namespace 2020-09-01 18:56:01 +01:00