Richard Davey
c754bb9133
Removed un-needed characters
2022-06-27 17:53:04 +01:00
samme
ad32842fa4
Fix Phaser.Display.RGB#equals()
2022-06-22 17:49:40 -07:00
Richard Davey
cf94e2cc8e
Update Container.js
2022-06-22 17:17:52 +01:00
Richard Davey
e032d573b1
Update Container.js
2022-06-22 16:13:41 +01:00
Richard Davey
e4c520aa9e
Update TextStyle.js
2022-06-22 14:22:52 +01:00
Richard Davey
8ad90cc949
When passing a TextStyle
configuration object to the Text Game Objects setStyle
method, it would ignore any metrics
data it may contain and reset it back to the defaults. It will now respect the metrics
config and use it, if present. Fix #6149
2022-06-21 17:04:38 +01:00
Richard Davey
b82c01d336
GameObjects.Polygon.setTo
is a new method that allows you to change the points being used to render a Polygon Shape Game Object. Fix #6151
2022-06-21 16:27:43 +01:00
Richard Davey
4f652e4c7c
Only flip if being used as a sprite textured
2022-06-17 15:14:54 +01:00
Rex
59bf0365c8
Update hitarea when changing frame
2022-06-17 14:46:03 +08:00
Richard Davey
01c7aab8c0
Fixed version number
2022-06-09 12:11:24 +01:00
Richard Davey
6b0962cff8
Preparing for 3.60 Beta 10
2022-06-07 17:54:19 +01:00
Richard Davey
5763f9e76b
The DisplayList.addChildCallback
method will now check to see if the child has a parent container, and if it does, remove it from there before adding it to the Scene Display List. Fix #6091
2022-06-07 17:17:18 +01:00
Richard Davey
9fb446c7e2
Container.removeAll
(which is also called when a Container is destroyed) will now directly destroy the children, if the given parameter is set, rather than doing it after removing them via the event handler. This fixes an issue where nested Containers would add destroyed children back to the Scene as part of their shutdown process. Fix #6078
2022-06-07 17:07:46 +01:00
Richard Davey
bdc3c05a1a
Container.removeHandler
now specifies the context for Events.DESTROY
, fixing an issue where objects moved from one container, to another, then destroyed, would cause sys
reference errors. Fix 5846
2022-06-07 16:54:48 +01:00
Richard Davey
a5132b2342
Call addedToScene and removedFromScene
...
* `Container.addHandler` will now call `GameObject.addedToScene`.
* `Container.removeHandler` will now call `GameObject.removedFromScene`.
2022-06-07 16:44:26 +01:00
Richard Davey
186fe4a04b
Game Objects that were created and destroyed (or moved to Containers) in the same frame were not correctly removed from the UpdateList. Fix #5803 #5817 #5818 #6052
...
* `ProcessQueue.isActive` is a new method that tests if the given object is in the active list, or not.
* `ProcessQueue.isPending` is a new method that tests if the given object is in the pending insertion list, or not.
* `ProcessQueue.isDestroying` is a new method that tests if the given object is pending destruction, or not.
* `ProcessQueue.add` will no longer place the item into the pending list if it's already active or pending.
* `ProcessQueue.remove` will check if the item is in the pending list, and simply remove it, rather than destroying it.
2022-06-07 16:43:56 +01:00
Richard Davey
4f005e3701
The Arcade Physics World.enableBody
method will now only create and add a Body
to an object if it has the Transform component, tested by checking the hasTransformComponent
property. Without the Transform component, creating a Body would error with NaN values, causing the rest of the bodies in the world to fail.
2022-05-31 18:15:41 +01:00
Richard Davey
058fb24096
The Transform
Component has a new boolean read-only property hasTransformComponent
which is set to true
by default.
2022-05-31 18:11:17 +01:00
Richard Davey
8a1faddecc
The Light
Game Object now has the Origin
and Transform
components, along with 4 new properties: width
, height
, displayWidth
and displayHeight
. This allows you to add a Light to a Container, or enable it for physics. Fix #6126
2022-05-31 18:10:25 +01:00
Richard Davey
ddd5e9b671
Typo fix
2022-05-31 00:25:44 +01:00
Richard Davey
695d0d861a
Merge pull request #6125 from samme/feature/particle-frequency
...
Allow particle frequency smaller than delta
2022-05-30 21:09:56 +01:00
samme
f393cb9c43
Allow particle frequency smaller than delta
2022-05-30 10:55:30 -07:00
Richard Davey
ec029cfaf0
RenderTexture.setIsSpriteTexture
is a new method that allows you to flag a Render Texture as being used as the source for Sprite Game Object textures. You can also toggle the new boolean property isSpriteTexture
as well. Doing this ensures that images drawn to the Render Texture are correctly inverted for rendering in WebGL. Not doing so can cause inverted frames. If you use this method, you must use it before drawing anything to the Render Texture. Fix #6057 #6017
2022-05-30 18:26:12 +01:00
Richard Davey
aa2dda09e2
UtilityPipeline.blitFrame
has a new optional boolean parameter flipY
which, if set, will invert the source Render Target while drawing it to the destination Render Target.
2022-05-30 18:25:21 +01:00
Richard Davey
4fd0fa2ab2
Update KeyboardPlugin.js
2022-05-27 18:54:41 +01:00
Richard Davey
0e09776bd5
Added tileFilterOptions property
2022-05-26 18:54:55 +01:00
Richard Davey
aedf666ffc
Testing filterOptions to avoid needless iterations
2022-05-25 21:01:30 +01:00
Richard Davey
c45caa86df
JSDoc fix
2022-05-25 21:01:12 +01:00
Richard Davey
03842535c3
TilemapLayer.setTint
is a new method that allows you to set the tint color of all tiles in the given area, optionally based on the filtering search options. This is a WebGL only feature.
2022-05-24 18:27:33 +01:00
Richard Davey
f69b50999a
Beta 9
2022-05-24 18:12:43 +01:00
Richard Davey
4e391fa6ab
Merge pull request #6108 from samme/feature/TilemapLayer-mask
...
Add Mask component to TilemapLayer
2022-05-16 15:58:47 +01:00
Richard Davey
9fef7f0d75
Beta 8
2022-05-13 15:13:57 +01:00
Rex
7615d3c731
Fix pack-loader bug
...
'packKey' could be undefined, an object, or a string. So test if packKey is a string type first.
2022-05-11 07:58:50 +08:00
samme
b6171f6e43
Add Mask component to TilemapLayer
2022-05-10 10:37:45 -07:00
Richard Davey
1020f72e4b
Fixed type
2022-05-10 18:07:17 +01:00
Richard Davey
a4d8e87095
Fixed lint errors
2022-05-10 17:06:53 +01:00
Richard Davey
24234fedcc
Merge pull request #6106 from samme/patch-14
...
Docs: fix the `mipmapFilter` example code
2022-05-09 18:36:07 +01:00
Richard Davey
b1f03649bb
LoaderPlugin.localSchemes
is a new array of scheme strings that the Loader considers as being local files. This is populated by the new Phaser.Core.Config#loaderLocalScheme
game / scene config property. It defaults to [ 'file://', 'capacitor://' ]
but additional schemes can be defined or pushed onto this array. Based on #6010
2022-05-09 18:34:56 +01:00
samme
54d12080eb
Docs: fix the mipmapFilter
example code
2022-05-09 09:44:09 -07:00
Richard Davey
033d4eeb32
Merge pull request #6084 from spayton/master
...
Allow input debug hit area colour to be adjusted after enabling.
2022-05-09 17:13:37 +01:00
Richard Davey
d8947e84b0
Merge pull request #6081 from adamazmil/iso-map
...
Fixes getTop for creating MatterTileBody for isometric tiles
2022-05-09 17:09:08 +01:00
Richard Davey
21bdac8a29
Merge pull request #6010 from Azim-Palmer/bugfix/cordova-webaudio-fix
...
Fix WebAudio for Crodova based apps
2022-05-09 16:56:37 +01:00
Richard Davey
919fa39faa
Merge pull request #6067 from TJ09/commonjs-import-change
...
Don't reassign the return values from require()
2022-05-09 16:49:58 +01:00
Richard Davey
d3a8e6ccf3
Merge pull request #6104 from samme/fix/getTilesWithinShape
...
Fix the GetTilesWithinShape() area
2022-05-09 16:48:11 +01:00
Richard Davey
086c2a1c39
Merge pull request #6095 from martincapello/fix-createFromAseprite
...
Fix frame durations when creating animations with createFromAseprite function
2022-05-09 16:42:47 +01:00
Richard Davey
d33035cf2d
Merge pull request #6094 from VanaMartin/imagefile-bugfix-1
...
FIX: ImageFile addCache pending destruction status
2022-05-09 16:39:26 +01:00
Richard Davey
4ce535b4ce
Merge pull request #6103 from samme/feature/Vector2-project
...
Add Phaser.Math.Vector2#project()
2022-05-09 16:35:43 +01:00
Richard Davey
201bfabf00
Setting scale.mode
in the Game Config would be ignored. It now accepts either this, or scaleMode
directly. Fix #5970
2022-05-06 18:21:28 +01:00
Richard Davey
0a59f89a32
Merge pull request #6087 from rexrainbow/lint-error
...
Fix lint error
2022-05-06 18:15:18 +01:00
samme
b60761a706
Fix the GetTilesWithinShape() area
...
Fixes #5640
2022-05-06 09:54:50 -07:00