Commit graph

3295 commits

Author SHA1 Message Date
Zeke Chan
5d74999620 Fixed "undefined" style bug causing crashes 2024-07-19 11:06:23 +08:00
Richard Davey
2fc8f5b3f9
Floor, not round 2024-07-16 23:17:40 +01:00
Richard Davey
77f209bbe5
Removed the uRoundPixels shader uniform and from the pipelines. Pass camera.roundPixels to setQuad. 2024-07-16 21:24:16 +01:00
Richard Davey
160587fb2d
Inlined the BitmapText BatchChar math to avoid 16 function calls per character 2024-07-16 21:23:09 +01:00
Richard Davey
f2855c66dd
Merge branch 'master' of https://github.com/phaserjs/phaser 2024-07-16 20:25:28 +01:00
Richard Davey
a8724b88d8
Calling Ellipse.setSize will internally call updateDisplayOrigin to retain position 2024-07-16 20:25:26 +01:00
Zeke Chan
f8dc6dcadb
Merge pull request #6782 from rexrainbow/depth-helper
Add some helper methods for changing rendering order
2024-07-16 16:29:45 +08:00
Richard Davey
5038c26051 The TextStyle.setStyle method will no longer mutate the given style object if it includes a numeric fontSize value. Fix #6863 2024-07-15 17:44:39 +01:00
Richard Davey
b14c580282 typo 2024-07-15 17:26:16 +01:00
zekechan
944c6be993 BitmapText with maxWidth set does not wrap text correctly when a line ends with a white space. Fix #6860 2024-07-15 17:12:50 +08:00
Zeke Chan
7931e181a2 Updated maxWidth calculations 2024-07-12 15:34:48 +08:00
Zeke Chan
e9f92fab64 Revert "Updated maxWidth calculations"
This reverts commit 514f99d8aa.
2024-07-12 12:37:42 +08:00
Zeke Chan
514f99d8aa Updated maxWidth calculations 2024-07-12 12:27:13 +08:00
Zeke Chan
9ecd99d173 Corrected currentLine offset 2024-07-11 17:34:47 +08:00
Zeke Chan
6fd0769915 Fixed line wrapping issue for lines ending with a space 2024-07-11 17:00:53 +08:00
zekechan
a190054ce0 Update TileSprite.js
Default width and height are assigned to displayFrame separately.
2024-07-10 17:15:57 +08:00
Zeke Chan
ea48bcf491 Update ParticleEmitter.js 2024-06-26 10:58:39 +08:00
Zeke Chan
f0f82d3a40 Update ParticleEmitter.js 2024-06-25 15:55:55 +08:00
Zeke Chan
42a6831106 Update GetBitmapTextSize.js
Fixed extra empty line issue in GetBitmapTextSize.js when setMaxWidth is called with line width less than a word.
2024-06-21 16:27:30 +08:00
Zeke Chan
9b2663774e Fixed bitmapText kerning bug 2024-06-19 13:55:41 +08:00
Zeke Chan
b2d62b6234 Update DeathZone.js
DeathZone now checks for particle local coordinates, not world coordinates.
2024-06-12 16:43:32 +08:00
Richard Davey
2f3a92b2d9 Added useSpriteSheet config property. Fix #6752 2024-06-07 16:30:06 +01:00
Richard Davey
27a0cb1a8f
Merge pull request #6813 from AlbertMontagutCasero/fix-TextStyle-setWordWrapWidth-definition
Fix jsdoc in setWordWrapWidth from Text and TextStyle
2024-06-06 15:27:45 +01:00
Richard Davey
d18f42377b
Merge pull request #6801 from samme/fix/getPipelineName-null
`getPipelineName()` is null if pipeline is null
2024-06-06 15:18:12 +01:00
Richard Davey
159fe935bb
Merge pull request #6785 from samme/feature/bitmaptext-key-error
Throw an error for invalid BitmapText key
2024-06-06 15:14:12 +01:00
Richard Davey
946e82b058 Removed .js from require paths (not needed) 2024-05-15 15:02:31 +01:00
Richard Davey
fc873c0e6d
Remove .js from require path 2024-05-15 00:40:35 +01:00
Albert Montagut Casero
b90fc23236 Fix jsdoc in setWordWrapWidth from Text and TextStyle 2024-05-07 10:36:46 +02:00
samme
840ff020f8 getPipelineName() is null if pipeline is null
Fixes #6799
2024-04-25 09:10:47 -07:00
samme
73ff013d95 Throw an error for invalid BitmapText key 2024-04-08 08:56:37 -07:00
Rex
f9cf19f479 displayList might be null 2024-04-08 00:36:59 +08:00
Rex
266c1f411d Fix bug 2024-04-06 16:24:08 +08:00
Rex
a2702fd795 Add some helper methods for changing rendering order 2024-04-06 09:24:04 +08:00
Richard Davey
8acc797b64 Updated documentation and removed Transform component 2024-02-27 15:48:31 +00:00
Ben Richards
b1806fd721 Remove unsynced flipY from Shader and DynamicTexture textures.
This might be causing some issues with context restore,
and seems entirely unnecessary.
2024-02-27 17:29:49 +13:00
Ben Richards
7eede9d236 Standardise texture update in Shader.initSampler2D. 2024-02-26 16:19:24 +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
57b7b09597 Fixed jsdoc 2024-02-21 22:39:29 +00: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
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
d25d65835a Update NineSliceRender.js 2024-02-21 12:59:40 +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
77778a07aa Just updateDisplayOrigin without defaults Fix #6655 2024-02-20 14:21:36 -05:00
Richard Davey
429dcf0ed0 Clarified docs. Fix #6516 2024-02-20 16:47:18 +00:00
Richard Davey
76a1062d50 Clarify container level. Fix #6699 2024-02-20 16:23:37 +00:00
Robert Kowalski
371a8b31a9 Add documentation on crop functionality Fix #6589 2024-02-20 11:21:47 -05:00