Commit graph

112 commits

Author SHA1 Message Date
Richard Davey
f0348126de Improved docs 2020-10-06 09:59:16 +01:00
Richard Davey
b285b2b5bb Expose manager functions. Fix #5345 2020-10-06 09:59:16 +01:00
Richard Davey
30d80bb74b Added keyframe 2020-10-05 08:06:53 +01:00
Richard Davey
4dfa49fc05 Fix return states 2020-09-30 09:23:58 +01:00
Richard Davey
ea73a72b73 Restored animation complete key event. 2020-09-09 16:08:59 +01:00
Richard Davey
8b2c9edce2 GenerateFrameNames can now accept the start and end parameters in reverse order, meaning you can now do { start: 10, end: 1 } to create the animation in reverse. 2020-09-08 13:40:20 +01:00
Richard Davey
dfb71fe2a6 Fixes to GenerateFrameNumbers
* `GenerateFrameNumbers` would include the __BASE frame by mistake in its calculations. This didn't end up in the final animation, but did cause a cache miss when building the animation.
* `GenerateFrameNumbers` can now accept the `start` and `end` parameters in reverse order, meaning you can now do `{ start: 10, end: 1 }` to create the animation in reverse.
2020-09-08 13:01:11 +01:00
Richard Davey
09d96d4e5e Now only dispatches one single event per action. Also added getFrameName method. 2020-09-08 12:17:38 +01:00
Richard Davey
d476032e9f Animation no longer extends the EventEmitter 2020-09-08 12:17:18 +01:00
Richard Davey
bbbae648b9 Deleted un-used events, renamed Sprite events and added lots more documentation. 2020-09-08 12:16:39 +01:00
Richard Davey
cdd612a273 AnimationState has moved namespace to keep things logically together 2020-09-08 09:31:59 +01:00
Richard Davey
bd19929006 JSDoc fix 2020-09-07 16:03:06 +01:00
Richard Davey
98dc69ed23 Added in support for blending animations with addMix, getMix and removeMix. 2020-09-07 15:33:57 +01:00
Richard Davey
ace5b8cafb Update Animation.js 2020-09-07 11:32:46 +01:00
Richard Davey
70110825da Console warning if frame doesn't exist
* `GenerateFrameNames` will now console.warn if the generated frame isn't present in the texture, which should help with debugging animation creation massively.
* `GenerateFrameNumbers` will now console.warn if the generated frame isn't present in the texture, which should help with debugging animation creation massively.
2020-09-07 10:26:04 +01:00
Richard Davey
b0872c188a The Component.Animation.updateFrame method has now been removed. Everything is handled by setCurrentFrame instead, which removes one extra step out of the update process. 2020-09-05 11:12:52 +01:00
Richard Davey
66f4ab69e7 When playing an animation in reverse, if it reached the first frame and had to repeat, it would then jump to the frame before the final frame and carry on, skipping out the final frame. 2020-09-04 13:06:00 +01:00
Richard Davey
5979864dc4 Use new method name and parameter order 2020-09-04 11:50:13 +01:00
Richard Davey
1d798441f3 Support repeat count for stopping 2020-09-04 11:40:32 +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
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
050c2a61b6 Fixed data-type 2020-09-03 17:36:36 +01:00
Richard Davey
15c6e7718c New Animation events 2020-09-03 15:04:09 +01:00
Richard Davey
a2f0c2e7e3 Added getTotalFrames and calculateDuration methods. 2020-09-02 17:43:44 +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
tobias
9f1cd22882 Fix typo for documentation on create method of AnimationManager on line 190 2020-08-25 00:43:22 +08:00
Richard Davey
2af65b2a1d Improved JSDocs and types. Fix #5217 2020-08-24 15:04:00 +01:00
Richard Davey
e4a784cb8b Lint fixed version of #4373 2020-04-27 14:40:42 +01:00
Richard Davey
e1b8b04623
Merge pull request #4975 from JasonHK/jsdoc
Fixed `this` return types
2020-04-27 13:25:58 +01:00
Richard Davey
e675c21db1 Finished JSDocs 2020-02-04 16:53:33 +00:00
Jason Kwok
d46d9f3d96 Fixed this return types for Phaser.Animations.AnimationManager 2020-01-30 23:17:23 +08:00
Jason Kwok
5c040aaa62 Fixed this return types for Phaser.Animations.Animation 2020-01-30 23:13:27 +08:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Chnapy
a794c16361 improve typings: GenerateFrameNames 2020-01-02 20:23:10 +01:00
Richard Davey
a8a7d45956 Removing a frame from a 2 frame animation would cause an error when a Sprite using that animation next tried to render. Fix #4621 2019-07-03 15:07:53 +01:00
Richard Davey
f18665cfa1 The Animation Manager will now emit a console warning if you try and play an animation on a Sprite that doesn't exist. 2019-07-03 12:02:46 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
69f84f3ccf Animations Types 2019-05-09 11:46:07 +01:00
danilo neves cruz
a586a4adeb fix reverse generateFrameNumbers 2019-02-15 17:38:39 -02:00
Richard Davey
e7b1d086e7 Moving all of the typedefs to properly namespaced scopes, rather than globals
\o/ ~ "Someone, save me!"
2019-02-13 12:35:12 +00:00
Richard Davey
ccaae460a4 Added jsdoc version numbers to each event 2019-02-12 11:37:58 +00:00
Richard Davey
a3b615bac5 JSDoc fixes 2019-02-04 11:49:34 +00:00
Richard Davey
d04232ae54 JSDoc fixes 2019-02-04 11:45:17 +00:00
Richard Davey
348306cafb Lots more jsdoc fixes and new documentation 2019-01-31 14:47:50 +00:00
Richard Davey
d380c3ac69 Virtually finished Scale Manager jsdocs and tidying up. 2019-01-28 17:12:28 +00:00
Richard Davey
bc962c25dc All listeners use the new Events 2019-01-18 13:41:43 +00:00
Richard Davey
0297a6625c Added Data Manager events and fixed some jsdoc links 2019-01-16 10:16:31 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00