Commit graph

11345 commits

Author SHA1 Message Date
Richard Davey
bc7e5f9c79
Merge pull request #6196 from samme/feature/texture-add-remove-key-events
Add texture add/remove key events
2022-08-24 21:20:13 +01:00
Richard Davey
5c4f4a3450
Merge pull request #6197 from samme/fix/getTextureKeys-white
Exclude __WHITE in getTextureKeys()
2022-08-24 21:16:15 +01:00
Richard Davey
169c402bb8
Merge pull request #6198 from samme/fix/arcade-world-destroy-debugGraphic
Destroy Arcade Physics debug graphic with world
2022-08-24 21:14:41 +01:00
Richard Davey
7fea4a095b Testing new chain + delta system 2022-08-24 18:51:30 +01:00
Richard Davey
88d9c9c19c Allow arrays of chained tweens 2022-08-24 18:51:18 +01:00
Richard Davey
23130bfaf0 Added CHAINED const 2022-08-24 18:50:16 +01:00
samme
7824876bd7 Add texture add/remove key events
- Phaser.Textures.Events.ADD_KEY
- Phaser.Textures.Events.REMOVE_KEY
2022-08-24 10:13:58 -07:00
Richard Davey
fef6718ea6 Added missing property 2022-08-24 14:51:45 +01:00
Richard Davey
4c2d3e3cff setTextureZero will now set isTextureClean to false 2022-08-24 13:56:12 +01:00
Richard Davey
c7d66ded23 Corrected docs 2022-08-24 13:55:53 +01:00
Richard Davey
a236326dcc Fixed jsdocs and preparing for Tween.chain 2022-08-23 21:43:05 +01:00
Richard Davey
2d11103c34 Removed BaseTween and merged back into Tween
As we don't need to split it for Timeline any longer.
2022-08-23 21:27:15 +01:00
Richard Davey
77603c2b42 Removed all Timeline related code and events 2022-08-23 21:13:03 +01:00
samme
01735b5a5c Exclude __WHITE in getTextureKeys() 2022-08-23 10:38:51 -07:00
Richard Davey
1f01eaa355 Update StaggerBuilder.js 2022-08-23 18:08:48 +01:00
Richard Davey
30ef13291c Dispatch the pause and resume events 2022-08-23 18:05:59 +01:00
Richard Davey
80d0f9197c Updated typedefs 2022-08-23 17:54:53 +01:00
Richard Davey
2a32d33860 No need to pass TweenData ref to funcs 2022-08-23 17:50:08 +01:00
Richard Davey
68f2f6cb61 Remove console.log 2022-08-23 17:49:55 +01:00
Richard Davey
73a96bc4c2 Removed unsupported interpolation functions 2022-08-23 17:49:47 +01:00
Richard Davey
86f123fc8f Now supports interpolation tweens 2022-08-23 17:38:19 +01:00
Richard Davey
b5f219097c Added interpolationData parameter 2022-08-23 17:37:59 +01:00
Richard Davey
2f46aaf54a Typo 2022-08-23 17:37:46 +01:00
Richard Davey
4c23a88e03 We can simplify this a lot and only call funcs during TweenData creation 2022-08-23 17:37:40 +01:00
Richard Davey
6f9f20f0b3 Add interpolation to reserved props list 2022-08-23 17:37:13 +01:00
Richard Davey
e697176fd8 Add interpolation default 2022-08-23 17:37:01 +01:00
Richard Davey
0eb0171dfb Specify return type 2022-08-23 17:36:52 +01:00
Richard Davey
b3b4d596a9 Return interpolation getStart and getEnd 2022-08-23 17:36:42 +01:00
Richard Davey
4f34cb6b42 Can return null. 2022-08-23 17:36:14 +01:00
Richard Davey
e845dc207f Added support for value interpolation 2022-08-23 15:21:32 +01:00
Richard Davey
bec14fbac1 Now supports tween interpolation 2022-08-23 15:21:15 +01:00
Richard Davey
17d9c4b362 Added TweenData.interpolation 2022-08-23 15:21:01 +01:00
Richard Davey
98cba07913 Now passes the TweenData to the start and end callbacks 2022-08-23 15:20:50 +01:00
Richard Davey
16c1c4352b Added GetInterpolationFunction 2022-08-23 15:20:28 +01:00
Richard Davey
1b4053a8e7 Removed array check and tidied up direction code 2022-08-23 15:20:14 +01:00
Richard Davey
7cd749e776 Working through getting timelines running again 2022-08-23 00:04:24 +01:00
Richard Davey
285fc14b87 Update jsdocs and persist checks 2022-08-23 00:04:15 +01:00
Richard Davey
6165549c6f Remove console 2022-08-23 00:03:59 +01:00
Richard Davey
f8933f151e Ready for TIMELINE_ACTIVE 2022-08-23 00:03:52 +01:00
Richard Davey
45f1bef45e Make sure Tween.restart fires the Start event again 2022-08-22 21:36:44 +01:00
Richard Davey
94d0b8d797 Add onPause and onResume callbacks 2022-08-22 21:36:31 +01:00
Richard Davey
63fbff291a Added persist to the config defaults 2022-08-22 19:45:19 +01:00
Richard Davey
fced56b261 Tween.restart should unpause the tween 2022-08-22 19:42:23 +01:00
Richard Davey
70c0aa2091 Reworked the 'restart' flow 2022-08-22 17:55:15 +01:00
Richard Davey
cbe9aa5c17 Fixed missing const 2022-08-22 17:55:03 +01:00
Richard Davey
2065f29f10 Added new persist feature 2022-08-22 17:54:52 +01:00
Richard Davey
36f60d9bb7 Added FINISHED state 2022-08-22 17:54:38 +01:00
Richard Davey
337d5b3228 Tween.stop has had the resetTo parameter removed from it. Calling stop on a Tween will now prepare the tween for immediate destructions. If you only wish to pause the tween, see Tween.pause instead. 2022-08-22 16:43:24 +01:00
Richard Davey
a13b79f86e Added getTotal test 2022-08-19 18:49:08 +01:00
Richard Davey
c72ea9b7f8 Stop removing 2022-08-19 18:48:59 +01:00
Richard Davey
ce772272b0 Remove as part of destroy 2022-08-19 18:48:40 +01:00
Richard Davey
b6ae1f0061 Removed un-used property 2022-08-19 17:29:54 +01:00
Richard Davey
faec522e15 Special-case for scale 2022-08-19 17:29:44 +01:00
Richard Davey
7c26b7d461 Remove scale 2022-08-19 17:29:35 +01:00
Richard Davey
489130ce7b Added scale 2022-08-19 16:52:53 +01:00
Richard Davey
87ba0cdbb0 Use substring instead 2022-08-19 16:50:59 +01:00
Richard Davey
3f502758b3 Updated docs 2022-08-19 16:45:03 +01:00
Richard Davey
0258714887 Update TextureManager.js 2022-08-19 16:44:55 +01:00
Richard Davey
21a695d070 Removed log 2022-08-19 16:44:51 +01:00
Richard Davey
1cee183703 Fixed jsdocs 2022-08-19 16:44:41 +01:00
Richard Davey
5260fd90f2 Update Tween.js 2022-08-19 15:05:33 +01:00
Richard Davey
ec870f6a86 Corrected target param 2022-08-19 14:58:30 +01:00
Richard Davey
dfebdb9a7a The TweenManager calls init. 2022-08-19 14:42:20 +01:00
Richard Davey
30e92ac5b8 Create callback arguments dynamically 2022-08-19 14:36:35 +01:00
Richard Davey
7eec2cedd2 Pass by reference 2022-08-19 14:36:20 +01:00
Richard Davey
c2827e83fe Unified all of the tween callbacks 2022-08-19 14:35:24 +01:00
Richard Davey
328fb964e2 Fixed missing event params in jsdocs 2022-08-19 13:45:56 +01:00
samme
d40b084063 Destroy debugGraphic also 2022-08-18 17:25:32 -07:00
Richard Davey
bf95d61c11 Tween.init called by the TweenBuilder 2022-08-18 18:45:25 +01:00
Richard Davey
a8b7e7c249 Added BaseTypes back 2022-08-18 18:45:02 +01:00
Richard Davey
e25b3249c3 TweenBuilder calls Tween.init directly 2022-08-18 18:44:53 +01:00
Richard Davey
e3afb1d159 GameObjects.Text.appendText is a new method that will append the given text, or array of text, to the end of the content already stored in the Text object. 2022-08-18 18:44:40 +01:00
Richard Davey
f96986a2e7 Remove console.log 2022-08-18 18:24:08 +01:00
Richard Davey
c44b25ea8e Update TweenManager.js 2022-08-18 18:01:57 +01:00
Richard Davey
af202fdc6c Update CanvasPool.js 2022-08-18 18:01:53 +01:00
Richard Davey
9bc8826684 Specify the canvas is for drawing, not reading 2022-08-18 18:01:45 +01:00
Richard Davey
7c4eff9251 The CanvasFeatures tests and the TextureManager _tempContext now specify the { willReadFrequently: true } hint to inform the browser the canvas is to be read from, not composited. 2022-08-18 18:01:28 +01:00
Richard Davey
21ed9efca1 Improved jsdocs 2022-08-18 16:23:38 +01:00
Richard Davey
e39970eeff Create TweenCallbacks.js 2022-08-18 15:18:16 +01:00
Richard Davey
778521393b Using ACTIVE again. Also hardened destroyed tween handling. 2022-08-18 15:18:12 +01:00
Richard Davey
6e100270fd Swapping from PLAYING to ACTIVE 2022-08-18 15:17:57 +01:00
Richard Davey
d689908aa0 Added onStop and callback types 2022-08-18 15:17:47 +01:00
Richard Davey
810cfa587b Added link to SnowBMF 2022-08-17 16:41:40 +01:00
Richard Davey
da59d01823 Update Tween.js 2022-08-09 18:39:23 +01:00
Richard Davey
df978a4801 Fixed jsdocs for class 2022-08-09 18:39:17 +01:00
Richard Davey
790b4a4341 Added Tween pause and resume events 2022-08-09 18:39:09 +01:00
Richard Davey
13b6598558 The Physics.Arcade.Body.reset() method will now call Body.checkWorldBounds as part of the process, moving the body outside of the bounds, should you have positioned it so they overlap during the reset. Fix #5978 2022-07-28 18:35:56 +01:00
Flávio Silva
b2a0fe79ed
fix: Wrap documentation 2022-07-28 15:42:18 +01:00
Richard Davey
41803facaa 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. 2022-07-28 14:21:50 +01:00
Richard Davey
ef0ddec588 Update TweenBuilder.js 2022-07-27 17:52:28 +01:00
Richard Davey
62e6fc6946 Now extend from BaseTween 2022-07-27 16:54:57 +01:00
Richard Davey
87bb5dbea9 Create BaseTween.js 2022-07-27 16:54:57 +01:00
Dmitry Omelchenko
901dc31880 add second possible flac mime 2022-07-27 15:49:39 +03:00
Dmitry Omelchenko
ef5432df57 add "flac" sound type support 2022-07-27 15:45:33 +03:00
Richard Davey
7fb8fe2223 Calling Tween.setCallback() without specifying the params argument would cause an error invoking the callback params. This parameter is now fully optional. Fix #6047 2022-07-26 18:42:21 +01:00
Richard Davey
ceaafe7d6e Update Timeline.js 2022-07-26 18:36:08 +01:00
Richard Davey
fb4f95adf0 Now supports deeply-nested arrays of targets. Fix #6016 2022-07-26 18:36:02 +01:00
Richard Davey
1f6554f98e Utils.Array.Flatten is a new function that will return a flattened version of an array, regardless of how deeply-nested it is. 2022-07-26 18:34:04 +01:00
Richard Davey
f1bb335d35 Added ability to destroy a tween and tided up lots more 2022-07-26 12:50:27 +01:00
Richard Davey
246f60ba87 Update Tween.js 2022-07-26 02:41:11 +01:00