Commit graph

18079 commits

Author SHA1 Message Date
Richard Davey
9bdf022bed The BaseSoundManager.getAll method used to require a key parameter, to return Sounds matching the key. This is now optional and if not given, all Sound instances are returned. 2022-11-22 18:49:37 +00:00
Richard Davey
b15880bdea Update CHANGELOG-v3.60.md 2022-11-22 18:38:52 +00:00
Richard Davey
320317c884 The WebAudioSoundManager will now detect if the Audio Context enters a 'suspended' or 'interrupted' state as part of its update loop and if so it'll try to resume the context. This can happen if you change or disable the audio device, such as plugging in headphones with built-in audio drivers then disconnecting them, or swapping tabs on iOS. Fix #5353 2022-11-22 18:38:49 +00:00
Richard Davey
ee2b5f5e35 Clarify jsdocs. Fix #6043 2022-11-22 18:26:13 +00:00
Richard Davey
5d2a829ffe Update CHANGELOG-v3.60.md 2022-11-22 18:13:06 +00:00
Richard Davey
9357b8e609 The RenderTarget class will now create a Framebuffer that includes a Depth Stencil Buffer attachment by default. Previously, it didn't. By attaching a stencil buffer it allows things like Geometry Masks to work in combination with Post FX and other Pipelines. Fix #5802 2022-11-22 18:13:03 +00:00
Richard Davey
899bbfc6df Update package-lock.json 2022-11-22 17:41:03 +00:00
Richard Davey
dea8fb84a1 Update CHANGELOG-v3.60.md 2022-11-22 17:41:00 +00:00
Richard Davey
e7efa068a7 Previously, calling createBitmapMask on a Shape Game Object would fail unless you passed the shape to the method. Now, it will correctly create a mask from the Shape without needing to pass it. Fix #5976 2022-11-22 17:40:56 +00:00
Richard Davey
95ef3f9c25 Update Container.js 2022-11-22 00:19:02 +00:00
Richard Davey
152f2db66d Update CHANGELOG-v3.60.md 2022-11-21 23:26:47 +00:00
Richard Davey
436a42cfb4 The InputPlugin.sortGameObjects method was using the Camera Render List to determine the Game Object display list. This would exclude non-rendering objects, such as Game Objects with alpha set to zero, even if their Input alwaysEnable flag was set. This method now uses the Display List instead, which gives correct results for invisible 'always enabled' objects. Fix #5507 2022-11-21 23:26:44 +00:00
Richard Davey
154e262ae8 No point doing this twice 2022-11-21 22:46:01 +00:00
Richard Davey
3a8fcfce68 Update CHANGELOG-v3.60.md 2022-11-21 21:38:57 +00:00
Richard Davey
45fbebb53a BaseSoundManager.getAllPlaying is a new method that will return all currently playing sounds in the Sound Manager.
Fix #6147
2022-11-21 21:38:54 +00:00
Richard Davey
d48f74b9d7 Deps update 2022-11-21 21:10:58 +00:00
Richard Davey
12992704e3 Update CHANGELOG-v3.60.md 2022-11-18 22:15:34 +00:00
Richard Davey
d71b53a7f5 Updated jsdocs. Fix #5981 2022-11-18 22:14:59 +00:00
Richard Davey
b6613cb6dd Update CHANGELOG-v3.60.md 2022-11-18 22:09:08 +00:00
Richard Davey
0f4bd028ce Corrected jsdocs. Fix #6113 2022-11-18 22:09:05 +00:00
Richard Davey
40546012b3 Update CHANGELOG-v3.60.md 2022-11-18 22:04:42 +00:00
Richard Davey
d4b386aa90 Added generics to Container 2022-11-18 22:04:39 +00:00
Richard Davey
5be749c988 Added setCentre. Fix #6065 2022-11-18 21:39:47 +00:00
Richard Davey
84cdbdd560 Added generics. Fix #6140 2022-11-18 21:30:28 +00:00
Richard Davey
a8ae6d49b0 Update phaser.d.ts 2022-11-17 22:14:33 +00:00
Richard Davey
6c280845ed Update CHANGELOG-v3.60.md 2022-11-17 22:14:18 +00:00
Richard Davey
d520799603 New Parser build 2022-11-17 22:14:15 +00:00
Richard Davey
552aedaa85 Upgraded typescript and webpack 2022-11-17 22:14:02 +00:00
Richard Davey
9737bd643a Had to nuke relock to fix globals issue 2022-11-17 22:13:51 +00:00
Richard Davey
b28eaf8da7 Added generics to Scene Manager functions. Fix #5662 2022-11-17 22:13:24 +00:00
Richard Davey
46b7e36ec8 Update CHANGELOG-v3.60.md 2022-11-17 18:40:26 +00:00
Richard Davey
d48f548472 TS defs update. Fix #5665 2022-11-17 18:40:24 +00:00
Richard Davey
3aca6145d2 Update CHANGELOG-v3.60.md 2022-11-17 18:04:53 +00:00
Richard Davey
e608c2caf1 The CONTEXT_RESTORED Game Event has been removed and the WebGL Renderer no longer listens for the contextrestored DOM event, or has a contextRestoredHandler method. This never actually worked properly, in any version of Phaser 3 - although the WebGLRenderer would be restored, none of the shaders, pipelines or textures were correctly re-created. If a context is now lost, Phaser will display an error in the console and all rendering will halt. It will no longer try to re-create the context, leading to masses of WebGL errors in the console. Instead, it will die gracefully and require a page reload. 2022-11-17 18:04:51 +00:00
Richard Davey
1b8495f4ec Update TweenChain.js 2022-11-17 17:31:25 +00:00
Richard Davey
5c2fe632d1 Update CHANGELOG-v3.60.md 2022-11-17 17:25:50 +00:00
Richard Davey
c9d7a76998 The Light fragment shader will now use the outTintEffect attribute meaning the Light Pipeline will now correctly light both tinted and fill-tinted Game Objects. Fix #5452 2022-11-17 17:25:47 +00:00
Richard Davey
95ab3ac2ec Update CHANGELOG-v3.60.md 2022-11-17 16:49:14 +00:00
Richard Davey
8c7c8ee2a4 The batchLine method in the Multi Pipeline will now check to see if the dxdy len is zero, and if so, it will abort drawing the line. This fixes issues on older Android devices, such as the Samsung Galaxy S6 or Kindle 7, where it would draw erroneous lines leading up to the top-left of the canvas under WebGL when rendering a stroked rounded rectangle. Fix #5429 2022-11-17 16:49:10 +00:00
Richard Davey
1249c6a965 Update CHANGELOG-v3.60.md 2022-11-17 14:34:49 +00:00
Richard Davey
ce12d63d01 The Tilemap.destroyLayer method would throw an error "TypeError: layer.destroy is not a function". It now correctly destroys the TilemapLayer. Fix #6268 2022-11-17 14:34:46 +00:00
Richard Davey
fea2c9e7de Update CHANGELOG-v3.60.md 2022-11-17 14:28:25 +00:00
Richard Davey
759599e4d1 MapData and ObjectLayer will now enforce that the Tilemap.objects property is always an array. Sometimes Tiled willl set it to be a blank object in the JSON data. This fix makes sure it is always an array. Fix #6139 2022-11-17 14:28:23 +00:00
Richard Davey
eec8b6a507 Update CHANGELOG-v3.60.md 2022-11-17 14:18:02 +00:00
Richard Davey
05845c6ee0 The ParseJSONTiled function will now run a DeepCopy on the source Tiled JSON, which prevents object mutation, fixing an issue where Tiled Object Layer names would be duplicated if used across multiple Tilemap instances. Fix #6212 2022-11-17 14:17:58 +00:00
Richard Davey
37e99f5946 Merge branch 'master' of https://github.com/photonstorm/phaser 2022-11-16 22:01:30 +00:00
Richard Davey
a00efab782 Update CHANGELOG-v3.60.md 2022-11-16 22:01:27 +00:00
Richard Davey
4487419d39
Merge pull request #6286 from AlbertMontagutCasero/master
Updated SpineGameObject type definition
2022-11-16 22:00:28 +00:00
Albert Montagut Casero
3162ba63d9 Updated SpineGameObject type definition 2022-11-16 11:31:05 +01:00
Richard Davey
2f720246ab Reset the buffer and textures on rebind. 2022-11-15 21:54:43 +00:00