Commit graph

19467 commits

Author SHA1 Message Date
Ben Richards
42039a144e Fix failure to restore compressed textures after WebGL context loss. 2024-02-23 17:55:03 +13:00
Ben Richards
3cd756dbe9 Fix new WebGLTextures remaining bound after creation.
This caused an error when calling `Shader.setRenderToTexture()`
after the game started running.
The leftover texture caused a temporary cyclic reference with the new
Framebuffer. The actual rendering pipeline was not affected.
2024-02-22 19:01:03 +13:00
Richard Davey
e0f9e7d1d0 Preparing for v3.90 development 2024-02-21 23:15:21 +00:00
Richard Davey
a4aa78bf80 v3.80 Release 2024-02-21 22:41:51 +00:00
Richard Davey
66ab05f89b Update README.md 2024-02-21 22:39:36 +00:00
Richard Davey
57b7b09597 Fixed jsdoc 2024-02-21 22:39:29 +00:00
Robert Kowalski
64416f986d
Update CHANGELOG-v3.80.md 2024-02-21 17:10:00 -05:00
Richard Davey
143d1d9be9 Merge branch 'master' of https://github.com/phaserjs/phaser 2024-02-21 21:31:54 +00:00
Richard Davey
89afecc597 Swapped to the ComputedSize component, moved metadata handler logic to the new inline setSizeToFrame method 2024-02-21 21:31:51 +00:00
Robert Kowalski
60aa42fec4 Quick cleanup and documentation update 2024-02-21 16:12:29 -05:00
Robert Kowalski
7e848e66fa Add documentation about fixed frame size on plane animation 2024-02-21 16:07:24 -05:00
Ben Richards
198598882e Document non-optional texture update flags correctly. 2024-02-22 09:56:17 +13:00
Ben Richards
a0aa09ff31 Fix WebGL errors when updating video textures. 2024-02-22 09:18:12 +13:00
Richard Davey
52554ea962 Update CHANGELOG-v3.80.md 2024-02-21 17:42:42 +00:00
Richard Davey
e97336acb5 v3.80 build files 2024-02-21 13:32:36 +00:00
Richard Davey
5a12f2a193 Preparing for v3.80 release 2024-02-21 13:31:13 +00:00
Richard Davey
c1e61e6421 Update CHANGELOG-v3.80.md 2024-02-21 13:25:30 +00:00
Richard Davey
ff945e1595 Fix merge error 2024-02-21 13:25:08 +00:00
Richard Davey
c445303ffb Revert define changes as they don't work 2024-02-21 13:23:52 +00:00
Richard Davey
7959f373ac Updated webpack 2024-02-21 13:22:36 +00:00
Richard Davey
707c03b1f5 Update CHANGELOG-v3.80.md 2024-02-21 13:00:50 +00:00
Richard Davey
d25d65835a Update NineSliceRender.js 2024-02-21 12:59:40 +00:00
Richard Davey
509f78ed72 Merge branch 'master' of https://github.com/phaserjs/phaser 2024-02-21 12:57:55 +00:00
Richard Davey
7aaa976a4e Updated webpack config DefinePlugin use and corresponding defs to allow those crazy souls who import source directly on node to have a better life #6644 2024-02-21 12:57:48 +00:00
Robert Kowalski
9d155d8dde Revert "Add bounce event to arcade physics Fix #6406"
This reverts commit 542bac2d02.
2024-02-21 07:22:57 -05:00
Richard Davey
4a85524425 Update CHANGELOG-v3.80.md 2024-02-21 01:21:35 +00:00
Richard Davey
5ff0574385 Update CHANGELOG-v3.80.md 2024-02-21 01:11:46 +00:00
Richard Davey
d70e3f453c The ArcadePhysics.World.collideSpriteVsTilemapLayer method has been modified so that the body bounds are now expanded by the size of the scaled base tile in the Tilemap Layer. This fixes an issue where the check would skip over-sized tiles that were outside the bounds of the body. Mostly noticeable on layers that had a different base tile size to the map itself. Fix #4479 2024-02-21 01:11:43 +00:00
Richard Davey
708733e7a3 Update CHANGELOG-v3.80.md 2024-02-21 00:17:11 +00:00
Richard Davey
d855fa73d3 The TilemapWebGLRenderer function has been fixed so it now uses the TileSet width and height for the tile draw command. This fixes an issue where the Tilemap would render incorrectly if the base tile size was different to the tile size. Fix #5988 2024-02-21 00:17:09 +00:00
Richard Davey
c273a1c9af Handle non-sprite sheets 2024-02-21 00:01:28 +00:00
Richard Davey
862f75089e Merge branch 'master' of https://github.com/phaserjs/phaser 2024-02-20 23:56:21 +00:00
Richard Davey
43a77245c5 Update CHANGELOG-v3.80.md 2024-02-20 23:56:18 +00:00
Richard Davey
133073a55e The Tileset.updateTileData method has two new optional parameters offsetX and offsetY which allow you to set the offset that the tile data starts from within the base source texture. 2024-02-20 23:56:14 +00:00
Richard Davey
724ed7ec17 Texture#getFrameBounds is a new method that will return the bounds that all of the frames of a given Texture Source encompass. This is useful for things like calculating the bounds of a Sprite Sheet embedded within a Texture Atlas. 2024-02-20 23:53:26 +00:00
Richard Davey
085bfa0cac Use the TextureManager 2024-02-20 23:53:11 +00:00
Richard Davey
4df43d7bed Math.RectangleLike is a new typedef that defines a rectangle-like object with public x, y, width and height properties. 2024-02-20 23:52:54 +00:00
Ben Richards
60176e4b39 Merge remote-tracking branch 'origin/master' 2024-02-21 11:49:15 +13:00
Ben Richards
13d6defb33 Fix rare text sizes failing to render.
If initialized at a power-of-two resolution, then resized to a
non-power-of-two resolution, some extra parameters must be updated.
2024-02-21 11:48:59 +13:00
Richard Davey
5d0c50c704 Merge branch 'master' of https://github.com/phaserjs/phaser 2024-02-20 22:46:12 +00:00
Richard Davey
d054414ec4 Update CHANGELOG-v3.80.md 2024-02-20 22:46:09 +00:00
Richard Davey
68e089a380 The ScaleManager.orientationChange event listener will now directly refresh the Scale Manager internals. This fixes an issue where the orientation change event would fire after the window resize event, causing the Scale Manager to incorrectly report the new orientation on Chrome on iOS. Fix #6484 2024-02-20 22:46:05 +00:00
Robert Kowalski
542bac2d02 Add bounce event to arcade physics Fix #6406 2024-02-20 17:16:32 -05:00
Richard Davey
450b0d244f Update CHANGELOG-v3.80.md 2024-02-20 21:38:45 +00:00
Richard Davey
ebe627836e Fixed object creation, sprite origin and added useSpriteSheet property 2024-02-20 21:38:42 +00:00
Richard Davey
0002c009f7 Updated jsdocs 2024-02-20 21:38:19 +00:00
Robert Kowalski
6eba4f25ef
Update CHANGELOG-v3.80.md 2024-02-20 14:54:12 -05:00
Robert Kowalski
77778a07aa Just updateDisplayOrigin without defaults Fix #6655 2024-02-20 14:21:36 -05:00
Richard Davey
4d50ececdd Update CHANGELOG-v3.80.md 2024-02-20 18:39:55 +00:00
Richard Davey
89811d7388 The Tilemap.createFromTiles method has been updated. It will now copy the following properties, if set in the Tile, to the Sprites it creates: rotation, flipX, flipY, alpha, visible and tint. If these properties are declared in the spriteConfig passed to the method, those will be used instead, otherwise the Tile values are used. Fix #6711 2024-02-20 18:39:52 +00:00