Richard Davey
6acd415d16
Don't round the midPoint, or it breaks high zoom scrolling. Fix #6878
2024-08-06 23:01:33 +01:00
Richard Davey
5aaa5ec601
Merge branch 'master' of https://github.com/phaserjs/phaser
2024-08-06 22:48:54 +01:00
Richard Davey
24125ef4d9
Update Config.js
2024-08-06 22:48:49 +01:00
Richard Davey
8ef75453d0
Merge pull request #6876 from wooseok123/wooseok123-feat-switch
...
feat : add data argument in Scene.switch
2024-08-06 21:57:28 +01:00
Richard Davey
1624312aea
Merge pull request #6883 from RomanFrom710/6880-text-with-stroke-and-letter-spacing-issue
...
Apply stroke letter by letter if there is custom letter spacing
2024-08-06 21:54:21 +01:00
Richard Davey
50196f4958
Disable autoResize flag. The size a DynamicTexture is created at is the size it should remain forever.
2024-08-06 18:58:31 +01:00
Richard Davey
c81c6cecc8
Remove the requirement for autoResize to be set, so anyone can resize a RenderTarget
2024-08-06 18:58:12 +01:00
Richard Davey
d4d6a4c308
Beta 3 tag
2024-08-06 18:41:11 +01:00
Roman Chaley
cdefe1f68c
Apply stroke letter by letter if there is custom letter spacing
2024-08-04 16:11:37 +02:00
zekechan
cc0bac0214
Removed empty line spacing added when text is undefined. Fix #6807
2024-07-30 13:40:53 +08:00
Richard Davey
a3470a08e5
Updated rounding to use Math.floor + 0.5
2024-07-28 14:56:53 +01:00
Wooseok Han
8a52c00cad
feat : add data argument in Scene.switch
2024-07-26 13:25:07 +09:00
Richard Davey
f519c582c7
Fixed jsdocs
2024-07-23 16:58:57 +01:00
Richard Davey
49456a08b8
Merge pull request #6870 from samme/feature/timestep-pauseDuration-2
...
Pass pauseDuration 0 in `Phaser.Core.Events#RESUME` after manual game resume
2024-07-23 16:53:01 +01:00
Richard Davey
412d0e5b71
Merge pull request #6869 from samme/docs/scene-events
...
Docs: correct args in some scene events
2024-07-23 16:52:33 +01:00
Richard Davey
abf857d949
The Texture.getFrameBounds
method will now include the BASE texture in its calculations. This prevents it from returning a size of Infinity. This fixes an issue where a Tileset with margin/spacing loaded via load.spritesheet
instead of load.image
would have its margin and spacing ignored. Fix #6823
2024-07-23 16:39:49 +01:00
Richard Davey
ee2110c062
Removed debugging info.
2024-07-23 16:38:07 +01:00
Richard Davey
0d32e7bcbc
Fixed jsdoc
2024-07-23 15:48:54 +01:00
Zeke Chan
994389d041
Merge pull request #6816 from jacklehamster/master
...
Add PR to fix null pointer exception.
2024-07-23 16:52:37 +08:00
Zeke Chan
54e555d56a
Revert " #6816 Phaser.GameObjects.Components.FX#add fix null pipeline pointer"
...
This reverts commit 389e2af60f
.
2024-07-23 16:51:45 +08:00
Zeke Chan
389e2af60f
#6816 Phaser.GameObjects.Components.FX#add fix null pipeline pointer
2024-07-23 16:50:00 +08:00
Richard Davey
6c02206a90
Debugging tile spacing
2024-07-22 19:03:57 +01:00
Richard Davey
52085dba91
Don't call setTileSize or setSpacing unless values are given
2024-07-22 19:03:11 +01:00
samme
96bae29e62
Pass pauseDuration 0 for manual resume
2024-07-21 07:36:24 -07:00
Richard Davey
dc27d377f2
Include version in gameURL
2024-07-19 17:01:30 +01:00
Zeke Chan
5d74999620
Fixed "undefined" style bug causing crashes
2024-07-19 11:06:23 +08:00
samme
a98f1f5713
Docs: correct args in some scene events
2024-07-18 19:03:08 -07:00
Richard Davey
99260d2174
DynamicTexture now creates a Camera instance, not a BaseCamera
2024-07-18 21:21:33 +01:00
Richard Davey
14429786a0
Merge pull request #6867 from samme/feature/timestep-pauseDuration
...
Add TimeStep#pauseDuration, pass in Phaser.Core.Events#RESUME
2024-07-18 20:34:57 +01:00
samme
2824185784
Add TimeStep#pauseDuration
...
Pass in Phaser.Core.Events#RESUME
2024-07-17 18:57:03 -07:00
zekechan
4332448e9f
Moved errors
description above @ignore tag
2024-07-17 23:32:12 +08:00
zekechan
3658cd145f
Updated default location
property from literal -1
to type number
2024-07-17 23:31:48 +08:00
zekechan
5ddd3bf8a2
Removed duplicate localScheme
property
2024-07-17 23:30:53 +08:00
zekechan
f218a1bca2
Fix #6768 Tweens in a looping chain fire onStart only once
2024-07-17 15:35:06 +08:00
zekechan
112ca0dbf1
Fix #6773 Tweens in a chain fire onActive twice per chain iteration
2024-07-17 10:55:58 +08:00
Richard Davey
26d85978d2
Apply Math.floor across all camera values during preRender
2024-07-16 23:18:31 +01:00
Richard Davey
2fc8f5b3f9
Floor, not round
2024-07-16 23:17:40 +01:00
Richard Davey
40224d7c25
Removed BaseCamera.preRender method as it isn't used (overriden by Camera.preRender)
2024-07-16 22:59:47 +01:00
Richard Davey
d12b51cb48
The Multi Pipeline batchSprite
and batchTexture
methods will now apply Math.floor
to the sprite matrix calculations if camera round pixels is enabled.
2024-07-16 22:59:22 +01:00
Richard Davey
ccf09b3019
roundPixels now defaults to false again
2024-07-16 21:24:43 +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
23e287ef0e
#6773 Fixed TweenChain fire onActive twice per chain iteration
2024-07-16 17:42:10 +08: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
Zeke Chan
930d1ebcb6
Added missing var
in for
loop
2024-07-16 16:21:26 +08:00
Zeke Chan
340f90a627
Merge pull request #6793 from samme/feature/remove-asset-pack
...
Add Phaser.Loader.LoaderPlugin#removePack
2024-07-16 16:17:53 +08:00
Zeke Chan
71684df68e
Merge pull request #6802 from samme/feature/timeline-timeScale
...
Add Phaser.Time.Timeline#timeScale
2024-07-16 15:56:34 +08:00
Richard Davey
77bbab31f1
The RenderTarget
will now automatically listen for the Renderer resize event if autoResize
is true. This fixes an issue with Bitmap Masks where they wouldn't resize if the renderer resized. Fix #6769
2024-07-15 18:34:22 +01: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
Richard Davey
f2cc3c0b91
Update TilemapLayer.js
2024-07-15 17:24:27 +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
Richard Davey
5f4dfa4fb8
Fixed call to lengthSq
2024-07-12 16:58:51 +01:00
Richard Davey
29426d198e
Updated lookAtRH to call Vec3.lengthSq
2024-07-12 16:56:17 +01:00
Richard Davey
0560a787c5
Added missing subVectors method
2024-07-12 16:56:17 +01: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
a51e91e066
Merge pull request #6850 from rexrainbow/bugfix-drag
...
Fix drag-with-multiple-camera bug
2024-07-10 16:47:26 +08:00
Zeke Chan
7a726560ee
Merge pull request #6849 from samme/docs/tilemaps-nonNull
...
Docs: `nonNull` argument for `GetTileAt()` etc.
2024-07-10 16:44:12 +08:00
Rex
464dae5c96
Use cloned drag pointers
...
Drag pointer might be removed under event, it will break processing loop of drag pointers #6820
2024-07-10 10:22:03 +08:00
Zeke Chan
b2f6922c20
Changed group.length to group.getLength()
2024-07-05 15:25:14 +08:00
Zeke Chan
3bb1f6f96a
Changed default collisionMask = 2147483647
2024-07-05 15:24:58 +08:00
Zeke Chan
547179c5b8
Changed default collisionMask = 2147483647
2024-07-05 15:24:51 +08:00
Zeke Chan
5e7a8aeb01
Update RenderTarget.js
2024-07-05 14:31:06 +08:00
Zeke Chan
7450ff9dff
Add null
support to ignore default, missing, and white base64 images in TextureManager
2024-07-04 15:24:39 +08:00
Zeke Chan
97455bcedd
Added clear
area functionality
2024-07-04 14:56:11 +08:00
Zeke Chan
49c32ba5c5
Added clear
area functionality
2024-07-04 14:56:06 +08:00
Zeke Chan
02519c2ee5
Updated internal update
method to MatterJS 0.20.0
2024-07-03 15:10:31 +08:00
Zeke Chan
f69411fd6b
Integrated MatterCollisionEvents plugin
2024-07-01 17:20:58 +08:00
Zeke Chan
2bd89f1f29
Removed MatterCollisionEvents plugin
2024-07-01 17:20:43 +08:00
Zeke Chan
ea79f2be5c
Update MatterPhysics.js
2024-07-01 16:55:07 +08:00
Zeke Chan
431e58aa0f
Update Engine.js
2024-07-01 16:54:49 +08:00
Zeke Chan
ad2865f3fb
Added attractors property
2024-07-01 16:54:35 +08:00
Zeke Chan
cff438b2f8
Merge pull request #6846 from samme/feature/direct-control-friction
...
Add friction for direct-control bodies
2024-06-29 14:52:02 +08:00
Rex
05529fc98d
Store camera when drag-start
2024-06-29 00:19:48 +08:00
Rex
77c8f7389d
Fix drag-with-multiple-camera bug
2024-06-28 23:32:22 +08:00
Zeke Chan
429b794bd1
Update Runner.js
2024-06-28 17:51:33 +08:00
Zeke Chan
a0f44ed02e
Added wrapBounds property
2024-06-28 17:32:54 +08:00
Zeke Chan
ea0651f44d
Removed MatterCollisionEvents
, MatterAttractors
, MatterWrap
plugins
2024-06-28 17:32:33 +08:00
Zeke Chan
2ec9e38405
Added wrap to bounds feature
2024-06-28 17:31:50 +08:00
Zeke Chan
8667f5dd38
Added wrap to bounds feature
2024-06-28 17:31:41 +08:00
Zeke Chan
a69bacbb5c
Added wrap to bounds feature
2024-06-28 17:31:31 +08:00
Zeke Chan
2512f65da0
Added wrap to bounds feature
2024-06-28 17:31:27 +08:00
Zeke Chan
df2e7e7104
Update MatterWorldConfig.js
2024-06-28 16:29:38 +08:00
Zeke Chan
e0aed1aacf
Update MatterWorldConfig.js
2024-06-28 15:43:57 +08:00
samme
9037738bce
Docs: nonNull arg for GetTileAt() etc.
2024-06-27 14:17:47 -07:00
Zeke Chan
05a814dc1d
Update World.js
...
Updated `pair.activeContacts.length` to use new `pair.contactCount` property
2024-06-27 17:06:44 +08:00
Zeke Chan
0458e4ab01
Update MatterCollisionPair.js
...
Changed `activeContacts` to `contacts`
2024-06-27 17:05:39 +08:00
samme
b961398acf
Add friction for direct-control bodies
...
Fixes #6792
2024-06-26 09:43:39 -07:00
Zeke Chan
ea48bcf491
Update ParticleEmitter.js
2024-06-26 10:58:39 +08:00
Richard Davey
c45e2f4dba
MatterJS v0.20 integration
2024-06-25 18:51:12 +01:00
Richard Davey
91f21c95e9
3.85 beta 2 const
2024-06-25 18:50:55 +01:00
Zeke Chan
f0f82d3a40
Update ParticleEmitter.js
2024-06-25 15:55:55 +08:00
Richard Davey
b49cf68e71
v.3.85.0-beta.1 release
2024-06-21 17:00:46 +01: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
f92e1e86f2
Update ScaleManager.js
2024-06-19 14:18:50 +08:00
Zeke Chan
9b2663774e
Fixed bitmapText kerning bug
2024-06-19 13:55:41 +08:00
Zeke Chan
0951a4a3d4
Update ORIENTATION_CONST.js
...
Added secondary landscape orientation.
Added secondary portrait orientation.
2024-06-18 15:53:49 +08:00
Zeke Chan
a4779bb5f3
Update Frame.js
...
Added `setCutPosition`, `setCutSize`
2024-06-14 15:07:21 +08:00
Zeke Chan
52f3309ab5
Update GetLineToLine.js
2024-06-13 17:30:36 +08:00
Zeke Chan
7724dd0076
Update WebGLRenderer.js
2024-06-13 11:23:19 +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
Zeke Chan
ef6a9331b6
Update Pointer.js
...
These methods will now return `true` when multiple mouse buttons are being pressed:
- leftButtonReleased
- rightButtonReleased
- middleButtonReleased
- backButtonReleased
- forwardButtonReleased
2024-06-11 17:25:02 +08:00
Zeke Chan
1b965326d4
Update World.js
...
Added pushable property collision checking when both bodies are set to circles
2024-06-11 15:36:09 +08:00
Zeke Chan
43ce515fcb
Update WebGLRenderer.js
2024-06-11 15:25:53 +08:00
Richard Davey
4a82a8bc9b
Tidied up documentation and small code tweaks
2024-06-10 17:22:54 +01:00
Zeke Chan
48cd2fc2e0
Update WebGLRenderer.js
2024-06-11 00:05:08 +08:00
Zeke Chan
6014b2d775
Update WebGLRenderer.js
...
Added `setContextHandlers` method
2024-06-10 23:35:27 +08:00
Zeke Chan
3212f6ff33
Reapply "Update WebGLRenderer.js"
...
This reverts commit ead539a664
.
2024-06-10 14:52:57 +08:00
Zeke Chan
ead539a664
Revert "Update WebGLRenderer.js"
...
This reverts commit 6489106aa8
.
2024-06-10 14:50:14 +08:00
Zeke Chan
6489106aa8
Update WebGLRenderer.js
...
Added `dispatchContextLost`, `dispatchContextRestored` methods
2024-06-10 14:49:38 +08:00
samme
6d3dbd6065
Docs: note Tween timeScale
in Timeline#timeScale
2024-06-07 09:53:05 -07:00
Richard Davey
2f3a92b2d9
Added useSpriteSheet config property. Fix #6752
2024-06-07 16:30:06 +01:00
Richard Davey
38d27c1fd7
Changed version number
2024-06-06 15:49:06 +01:00
Richard Davey
9723414a16
The requestVideoFrame
polyfill has been updated to the latest release, which should resolve some SSR framework issues.
2024-06-06 15:49:06 +01:00
Richard Davey
722dfb79ed
Merge pull request #6771 from samme/patch-21
...
Docs: correct TilemapJSONFile superclass
2024-06-06 15:29:51 +01:00
Richard Davey
ca8102ab30
Merge pull request #6781 from samme/feature/audio-warnings
...
Improve the audio warnings
2024-06-06 15:29:01 +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
993e0cefa1
Merge pull request #6809 from samme/feature/sound-manager-isPlaying
...
Add BaseSoundManager#isPlaying()
2024-06-06 15:15:52 +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
c534e2ae6a
Merge pull request #6795 from samme/docs/set-velocity
...
Docs: note velocity units in Phaser.Physics.Arcade.Components.Velocity
2024-06-06 15:13:24 +01:00
Richard Davey
f10147809f
Merge pull request #6815 from lgtome/fix-parent-parameter-type
...
JSDoc and type for parent property
2024-06-06 15:12:37 +01:00
Richard Davey
c4501d2ccf
TimelineEvent
has a new property called tweenInstance
. If the Timeline event has a tween that has been activated, this will hold a reference to it.
2024-06-06 15:09:22 +01:00
Richard Davey
b70d06d475
Calling Timeline.clear
and Timeline.destroy
will now destroy any currently active Tweens that the Timeline had created. Previously, active tweens would continue to play to completion
...
Calling `Timeline.pause` will now pause any currently active Tweens that the Timeline had started
Calling `Timeline.resume` will now resume any currently paused Tweens that the Timeline had started
2024-06-06 15:09:22 +01:00
Richard Davey
228736a695
Merge pull request #6818 from rexrainbow/bugfix-expand-scale-mode
...
Set gameSize equal to baseSize, for EXPAND scale mode
2024-06-06 14:35:53 +01:00
Richard Davey
023d9fb0ba
Added all of the missing Loader Config values (such as imageLoadType
) to LoaderConfig, so they now appear in the TypeScript defs.
2024-06-06 14:32:58 +01:00
Rex
687903fc76
Expose const EXPAND definition
2024-05-31 11:46:16 +08:00
Jack Le Hamster
f3dd9523e2
Merge branch 'phaserjs:master' into master
2024-05-16 15:48:32 -07:00
Richard Davey
9b49655e9c
The method TextureManager.checkKey
will now return false
if the key is not a string, which fixes issues where a texture could be created if a key was given that was already in use
2024-05-15 15:37:19 +01:00
David Négrier
0bcc71d469
Fixing DomElement position when camera zoom != 1
...
When the camera zoom is set to any other value than one, if a dom element origin
if set to anything other than 0, the final position of the DOM was incorrect.
I traced this back to the DOMElementCSSRenderer.
After some trial and error, I realized the translation needed to be applied after camera multiplication
and not at the beginning.
With this change, DOMElements are correctly positioned.
2024-05-15 16:25:28 +02:00
Richard Davey
946e82b058
Removed .js from require paths (not needed)
2024-05-15 15:02:31 +01:00
Richard Davey
5d1d379991
Updated version to 3.85.0
2024-05-15 15:02:04 +01:00
Rex
4a064214ba
Set gameSize equal to baseSize
2024-05-15 21:21:22 +08:00
Richard Davey
fc873c0e6d
Remove .js from require path
2024-05-15 00:40:35 +01:00
Jack Le Hamster
cc1329e85d
Revert "Fix bug in all JS files."
...
This reverts commit 0ffec094a1
.
2024-05-14 14:17:03 -07:00
Jack Le Hamster
0ffec094a1
Fix bug in all JS files.
2024-05-14 00:55:03 -07:00
Jack Le Hamster
cde45d8766
Fix null pointer exception:
...
Uncaught TypeError: Cannot set properties of undefined (setting 'controller')
occurring on Windows when adding effects.
2024-05-14 00:24:41 -07:00
lgtome
370cfbb52c
Fix jsdoc and type for parent property
2024-05-09 23:31:10 +03:00
Albert Montagut Casero
b90fc23236
Fix jsdoc in setWordWrapWidth from Text and TextStyle
2024-05-07 10:36:46 +02:00
samme
f01e2764c9
Add BaseSoundManager#isPlaying
2024-05-03 07:39:37 -07:00
samme
252cb41517
Add Phaser.Loader.LoaderPlugin#removePack()
2024-04-26 09:15:55 -07:00
samme
287c1e86af
Add Phaser.Time.Timeline#timeScale
2024-04-25 10:58:44 -07:00
samme
840ff020f8
getPipelineName() is null if pipeline is null
...
Fixes #6799
2024-04-25 09:10:47 -07:00
Robert Kowalski
e337b6e4d1
The default for inputActivePointers works for this condition now
2024-04-22 09:30:00 -04:00
Robert Kowalski
ec98b33757
Consistently check length for each pointer event Fix #6783
2024-04-21 23:57:18 -04:00
Richard Davey
c1c1a0ffa4
If GetURL returns false File.load will now throw a helpful error instead of crashing
2024-04-21 18:41:17 +01:00
samme
fbc7f57c28
Docs: note velocity units
...
Phaser.Physics.Arcade.Components.Velocity
2024-04-17 06:54:31 -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
samme
f7e029ca2d
Improve the audio warnings
2024-04-04 08:40:06 -07:00
samme
e988861f5d
Docs: correct TilemapJSONFile superclass
2024-03-17 18:06:12 -07:00
Robert Kowalski
e1d23b98c0
Spelling fixes
2024-03-05 22:21:42 -05:00
Richard Davey
8acc797b64
Updated documentation and removed Transform component
2024-02-27 15:48:31 +00:00
Richard Davey
6943c9bbca
Reverted a change made in TouchManager
that would prevent clicks from outside the game window from being registered. Fix #6747
2024-02-27 15:36:34 +00:00
Richard Davey
229f9232f4
Modified onMouseUpWindow
and onMouseDownWindow
in the MouseManager
so they now check for sourceCapabilities.firesTouchEvents
and if found, abort registering the event. This new browser event property is designed to prevent you accidentally registering a Mouse Event when a Touch Event has just occurred (see https://developer.mozilla.org/en-US/docs/Web/API/InputDeviceCapabilities/firesTouchEvents ) #6747
2024-02-27 15:36:23 +00:00
Richard Davey
fb47fcf455
Update const.js
2024-02-27 14:59:29 +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
1b77881dd4
Ensure TextureSource.setFlipY
always updates the texture.
...
When it's a Canvas or Video, at least.
2024-02-27 15:17:52 +13:00
Lukas Dachtler
d5b9c684a3
marked updateVelocity as optional parameter
2024-02-26 23:42:20 +01:00
Ben Richards
37ba3510f2
Fix RenderTexture crashing in the presence of a light.
...
More generally, anything with a default/no normal map should be fixed.
2024-02-26 17:45:52 +13:00
Ben Richards
7eede9d236
Standardise texture update in Shader.initSampler2D
.
2024-02-26 16:19:24 +13:00
Ben Richards
cab4bab15e
Eliminate duplicate code in WebGL video handling.
...
This involves a new method, `videoToTexture`.
2024-02-23 19:16:18 +13:00
Ben Richards
9a5b51dd27
Eliminate duplicate code in WebGL texture creation/update.
...
This should make the code lighter and more maintainable.
`UNPACK_FLIP_Y_WEBGL` is now always set, where previously it was allowed
to just remain default (false); this is necessary for the new code path.
`Uint8Array` sources are now allowed to generate MIPMaps.
`WebGLTextureWrapper.update` now checks the type of `pixels`, although
it should only ever be the final case.
2024-02-23 18:43:27 +13:00
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
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
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
5a12f2a193
Preparing for v3.80 release
2024-02-21 13:31:13 +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
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
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
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
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