Andy Mikulski
b3c4616550
RenderTexture: Use 255-based RGB values when filling a Canvas
2022-02-22 18:33:09 -07:00
Richard Davey
6edbd9df22
Update RenderTexture.js
2022-02-21 18:42:54 +00:00
Richard Davey
6a6590d0dd
Merge pull request #6000 from sjb933/hotfix-rendertexture-blend
...
Fixed WebGL blending that was broken in 3.50. Fix #5565 , fix #5996
2022-02-21 18:41:40 +00:00
arbassic
38f23baaf7
Fix kerning for BitmapText
...
There was a bug in the GetBitmapTextSize function, causing that kerning was not applied at all to BitmapTexts.
The fix sets 'x' of the character with calculated 'x' local variable (instead of general xAdvance.
Also xAdvance is modified with kerningOffset to provide consistency between proceeding characters
2022-02-15 19:03:13 +01:00
Shane Bammel
1c4c11b527
Fixed WebGL blending that was broken in 3.50. Fix #5565 , fix #5996
2022-02-11 16:34:43 -06:00
Richard Davey
3546140b51
Merge branch 'master' of https://github.com/photonstorm/phaser
2022-02-03 21:50:54 +00:00
Richard Davey
c1b36610fb
Update TileSprite.js
2022-02-03 21:50:52 +00:00
Richard Davey
a4308cfa3a
Skips Canvas drawImage calls if invalid frame sizes given. Fix #5951
2022-02-03 16:44:24 +00:00
Richard Davey
124daba3f5
Lint fix for #5984
2022-02-03 16:09:30 +00:00
Richard Davey
7e5ace5026
Merge pull request #5984 from optimumsuave/bugfix-closepath-polygon-canvas-renderer
...
Bugfix: PolygonCanvasRenderer: check for closePath when rendering Polygon with Phaser.CANVAS
2022-02-03 16:07:39 +00:00
Richard Davey
23193131f8
Merge pull request #5968 from vforsh/point-to-container-fix
...
Fix `pointToContainer` issue with `output` parameter
2022-02-03 16:03:21 +00:00
Richard Davey
0100586e52
Fixed jsdocs for #5958
2022-02-03 16:02:08 +00:00
Richard Davey
d193a82376
Merge pull request #5958 from rexrainbow/mesh-tint
...
Add setTint() method in Mesh GameObject
2022-02-03 15:58:23 +00:00
Richard Davey
f406dd25d3
Merge pull request #5957 from samme/docs/TileSpriteConfig-frame
...
Docs: correct type for TileSpriteConfig.frame
2022-02-03 15:55:41 +00:00
Connor Nielsen
5823cd70df
fix formatting in PolygonCanvasRenderer
2022-01-26 14:26:02 -08:00
Connor Nielsen
9119b776c8
check for closePath in PolygonCanvasRenderer
2022-01-26 14:06:33 -08:00
Vladislav Forsh
7a636379f5
Fix pointToContainer
issue with output
parameter
...
provided `output` parameter was ignored when the container didn't have a parent container (was attached directly to the scene)
(cherry picked from commit 0d97dcc1f844f528f2361bfd800dec4885c5edc1)
2022-01-06 13:07:16 +03:00
Phaser Editor 2D
61ef57a399
Tag as optional the Sprite.chain(key)
argument.
...
The `chain()` method accepts no argument to reset the chain of animations.
2022-01-02 17:05:30 -05:00
Rex
38e0323b01
Add setTint() method
2021-12-24 11:47:09 +08:00
samme
f81a047029
Docs: correct type for TileSpriteConfig.frame
...
Fixes #5955
2021-12-23 13:35:04 -08:00
David Schontzler
daa5e662e7
destroy game objects during shutdown safely #5520
2021-12-21 19:55:35 -08:00
Richard Davey
d51fa15cdf
Made docs include mention of post fx. #5942
2021-12-21 17:41:52 +00:00
Richard Davey
ba132ab25c
Fixed JSDocs
2021-12-15 22:26:04 +00:00
samme
e9e72a3ea5
Remove GetBounds component from PointLight
2021-12-04 11:55:19 -08:00
Richard Davey
e56391d8ed
Merge pull request #5918 from rexrainbow/shape-gameobject-mask
...
Allow Shape game object to be a mask
2021-12-01 18:36:04 +00:00
Richard Davey
385800ec2f
Merge pull request #5839 from natureofcode/fix/issue-5828
...
Fix #5828 , improve GameObject#disableInteractive() and InputPlugin#disable()
2021-12-01 17:46:34 +00:00
Richard Davey
7188040d7d
The GameObject.willRender
method will now factor in the parent displayList
, if it has one, to the end result. This fixes issues like that where an invisible Layer will still process input events. Fix #5883
2021-12-01 17:24:12 +00:00
Richard Davey
5b39d22368
Mesh addVertices and addVerticesFromObj will now throw warnings if invalid verts are given. Fix #5922
2021-11-22 16:59:30 +00:00
Rex
784c2bd1ae
Allow Shape game object to be a mask
2021-11-05 10:57:17 +08:00
Richard Davey
4b63bd2500
Update Pipeline.js
2021-11-02 17:05:16 +00:00
Richard Davey
aea45bb06d
Text
with RTL enabled wouldn't factor in the left / right padding correctly, causing the text to be cut off. It will now account for padding in the line width calculations. Fix #5830
2021-11-01 18:44:10 +00:00
Richard Davey
314ff439c9
Merge pull request #5889 from samme/fix/path-follower-end
...
Fix PathFollower end point when given `to`
2021-11-01 17:07:54 +00:00
samme
ebb27e8ae4
Fix PathFollower end point when given to
2021-10-30 11:13:50 -07:00
Richard Davey
20d4391c29
Calling ParticleEmitter.setScale
would set the scaleY
property to null
, causing calls to setScaleY
to throw a runtime error. scaleY
is now a required property across both the Particle and Emitter classes and all of the conditional checks for it have been removed
2021-10-28 15:01:51 +01:00
Richard Davey
b3f34a0471
Update Text.js
2021-10-27 15:46:20 +01:00
Richard Davey
50669c7bdf
Updated jsdocs. Fix #5880
2021-10-26 14:31:15 +01:00
Richard Davey
9d7a575a4f
Added FX component
2021-10-16 15:23:19 +01:00
Richard Davey
43df6de757
Removed duplicate post fx calls
2021-10-16 15:22:30 +01:00
Richard Davey
7a705d757c
The Text
Game Object would call the pre and post batch functions twice by mistake, potentially applying a post fx twice to it.
2021-10-16 15:08:39 +01:00
Richard Davey
dddf601acb
Added onFXCopy
2021-10-15 18:38:57 +01:00
Richard Davey
163978452e
Added onFX
2021-10-15 00:58:40 +01:00
samme
ba5e4ffab7
Docs: add Phaser.Types.GameObjects.Particles.ParticleClassConstructor
...
Fixes #5731 ?
2021-10-13 13:23:31 -07:00
samme
52e402e14e
Docs: add Phaser.Types.GameObjects.Group.GroupClassTypeConstructor
2021-10-13 13:22:54 -07:00
Richard Davey
6eebd6c1cf
GameObjects.Components.FX
is a new component that provides access to FX specific propertis and methods. The Image and Sprite Game Objects have this component by default.
2021-10-12 21:47:24 +01:00
Richard Davey
fd655d054c
Added fxPadding property to Image
2021-10-12 01:02:42 +01:00
Richard Davey
c1430f41dc
Testing FX padding
2021-10-11 15:10:57 +01:00
Richard Davey
cca537b66b
Merge pull request #5841 from samme/feature/warn-particle-missing-frame
...
Warn, throw for particle texture frame mistakes
2021-09-24 14:38:20 +01:00
samme
023336f826
Throw an error for missing particle texture frame
2021-09-23 11:15:58 -07:00
samme
da86ea7029
Warn for missing texture frames
2021-09-23 11:15:29 -07:00
Richard Davey
93db763f69
Merge pull request #5340 from 16patsle/Fix_object_types
...
Add more specific 'object' types, including GO Configs
2021-09-23 15:30:43 +01:00
Richard Davey
a5c0795967
Merge pull request #5772 from sylvainpolletvillard/master
...
types: complete Phaser.Input.Gamepad.Configs definitions
2021-09-22 11:35:25 +01:00
Richard Davey
cd4baa100d
Merge pull request #5744 from rexrainbow/rectangle-setsize
...
Update Rectangle shape game object's display origin and default hitArea
2021-09-21 11:46:42 +01:00
Richard Davey
5f2e3f35e1
Fixed code format
2021-09-20 12:18:54 +01:00
Richard Davey
da3e8b5a25
Merge pull request #5788 from martell-ventures/loadURL_crossorigin
...
Add Crossorigin support
2021-09-20 12:16:14 +01:00
Richard Davey
519a7f99e1
Bumped version
2021-09-20 12:08:56 +01:00
Richard Davey
e26f1dd460
Merge pull request #5800 from samme/fix/nested-layers-error
...
Add Layer#addToDisplayList(), Layer#removeFromDisplayList()
2021-09-20 12:07:11 +01:00
Richard Davey
e131488a32
Bumped version
2021-09-20 12:05:46 +01:00
Richard Davey
8075c3ab1b
Merge pull request #5819 from samme/fix/dom-element-parent-visibility
...
Add DOMElement#preRender, remove DOMElement#preUpdate
2021-09-20 12:01:16 +01:00
Richard Davey
5a7ed14b3b
Merge branch 'master' of https://github.com/photonstorm/phaser
2021-09-20 11:51:37 +01:00
Richard Davey
929ad23b4e
Merge pull request #5748 from rexrainbow/zone-default-dropzone
...
Use default hitArea if hitArea parameter is not given
2021-09-20 11:45:18 +01:00
Richard Davey
2f8d6a023d
Updated version number
2021-09-20 11:41:47 +01:00
Richard Davey
305fbd1ec6
Merge pull request #5742 from rexrainbow/turn-off-context-restore-event
...
Turn off context restore event when game object is destroyed
2021-09-20 11:35:34 +01:00
natureofcode
89ff86202b
Fix #5828
2021-09-17 12:19:39 +05:00
Richard Davey
535ca66ec6
colr typo in the docs
2021-09-03 12:35:32 +01:00
samme
846ea3fe1d
Add DOMElement#preRender, remove DOMElement#preUpdate
...
Check parent visibility in preRender()
Fixes #5816
2021-08-27 10:43:21 -07:00
samme
728db67a6d
Add Layer#addToDisplayList(), Layer#removeFromDisplayList()
...
Fixes #5799
2021-08-01 14:04:51 -07:00
Ryan Martell
078a94c3e6
Add Crossorigin support
2021-07-20 12:47:45 -06:00
Sylvain Pollet-Villard
2abe9e323f
types: fixed duplicate names
2021-07-08 23:54:10 +02:00
Rex
66e322dcd5
Use default hitArea if not hitArea is not ogiven
...
Default hitArea will resize when `zone.setSize(w, h)`
2021-06-16 11:16:19 +08:00
Rex
3a7557c3f4
Update display origin and default hitArea
2021-06-12 13:41:37 +08:00
Rex
a6c75a36c8
Turn off context restore event when game object is destroyed
2021-06-12 12:44:23 +08:00
Richard Davey
9cd5f56eea
Fixed an issue in FillPathWebGL
, IsoBoxWebGLRenderer
and IsoTriangleWebGLRenderer
functions which caused the filled versions of most Shape Game Objects to pick-up the texture of the previous object on the display list. Fix #5720
2021-05-27 14:48:40 +01:00
Richard Davey
55b69e5d98
Made fromScene
optional
2021-05-26 15:49:05 +01:00
Richard Davey
5552079c9d
Merge pull request #5717 from rexrainbow/destroy-from-scene
...
Add 'fromScene' parameter in GameObject.destroy() method, and DESTROY event
2021-05-26 15:29:35 +01:00
Richard Davey
5d9d543ce0
Fixed rendering calls. Fix #5712
2021-05-26 15:24:09 +01:00
Rex
07ff5de1e1
Add 'fromScene' parameter in GameObject.destroy() method, and DESTROY event
2021-05-26 16:25:12 +08:00
Richard Davey
3b160a2e9d
Fixed jsdoc tags
2021-05-24 18:23:09 +01:00
Richard Davey
45ccff26e1
Fixed jsdoc name
2021-05-24 17:33:01 +01:00
Richard Davey
048c2772be
Merge pull request #5683 from karbassi/patch-1
...
GameObjectConfig allow type object
2021-05-24 17:00:38 +01:00
Richard Davey
f562354292
Merge pull request #5656 from valadaptive/faster-measure-text
...
Improve performance of MeasureText
2021-05-24 16:57:12 +01:00
Richard Davey
4a32a5cdb8
Merge pull request #5664 from rexrainbow/container-input-2
...
Invoke `addToRenderList()` before leaving render method
2021-05-24 16:54:43 +01:00
Richard Davey
23582a43a2
Merge pull request #5673 from rexrainbow/array-methods
...
Add MoveAbove, MoveBelow methods of List structure
2021-05-24 16:53:39 +01:00
Richard Davey
06028bb2cd
Merge pull request #5704 from VektreX/master
...
Fixed video not resuming on regaining focus
2021-05-24 16:51:00 +01:00
Emil Schnedler Vad
9fa971902b
fixed type of ParticleEmitterConfig deathCallback to function
2021-05-24 16:42:01 +02:00
VektreX
b63bb53430
Reset _codePaused to false in play handlers to allow video to resume
2021-05-18 01:32:45 +02:00
Ali Karbassi
dd4ef06f97
GameObjectConfig allow type object
...
GameObjectConfig x, y, rotation, angle, and alpha should allow type object
Fixes #5682
2021-05-05 17:01:56 -05:00
Richard Davey
144924bc61
JSDoc fix
2021-05-03 18:15:29 +01:00
Rex
62ea171971
Add MoveAbove, MoveBelow methods of List structure
...
MoveAbove: Moves the given array element above another one in the array.
MoveBelow: Moves the given array element below another one in the array.
2021-04-26 15:17:42 +08:00
Richard Davey
7d3970178d
The RenderTexture.endDraw
method has a new optional boolean erase
which allows you to draw all objects in the batch using a blend mode of ERASE. This has the effect of erasing any filled pixels in the objects being drawn.
2021-04-25 20:32:56 +01:00
Richard Davey
6735f7e88e
Update Shape.js
2021-04-20 15:15:51 +01:00
Rex
fca1eb1206
Also fix it in CanvasRender
2021-04-20 21:15:46 +08:00
Rex
e6ed148abc
Invoke addToRenderList
first before leaving render method
...
Leaving render method when children count is 0
2021-04-20 10:22:59 +08:00
Richard Davey
7a12a205b8
Merge pull request #5661 from Palats/master
...
Fix Phaser.GameObjects.Components.Pipeline#postPipelines doc
2021-04-19 20:41:29 +01:00
Richard Davey
2156be011b
Update Extern.js
2021-04-19 08:52:25 +01:00
Pierre Palatin
93543d650a
Fix Phaser.GameObjects.Components.Pipeline#postPipelines doc
...
* Updates the Documentation
Describe the changes below:
The `s` was missing in the doc for `postPipelines`, leading to wrong Typescript typing and misleading documentation.
2021-04-18 17:49:32 +02:00
Richard Davey
2712e87ca2
Graphics and Shape now use the new Multi Pipeline
2021-04-16 18:19:39 +01:00
valadaptive
4640874643
Fix check for new text measurement results
...
actualBoundingBoxDescent is *not* defined on the TextMetrics object
returned from measureText--it's defined on its prototype. This oversight
was causing the slow path to be taken in all browsers.
2021-04-14 22:44:10 -04:00
valadaptive
4cd7706390
Only call getImageData once in MeasureText
2021-04-14 22:38:58 -04:00
Richard Davey
bb1a078243
The GameObjectFactory.existing
method will now accept Layer
as a TypeScript type. Fix #5642
2021-04-13 13:42:33 +01:00
samme
2856b1ab3a
Fix clearing PRE_UPDATE by mistake
2021-04-02 19:02:14 -07:00
Richard Davey
8c47d54e4d
Added missing docs. Fix #5629
2021-03-30 10:30:02 +01:00
Richard Davey
b280f3f400
GameObjects.DOMElement.pointerEvents
is a new property that allows you to set the pointerEvents
attribute on the DOM Element CSS. This is auto
by default and should not be changed unless you know what you're doing.
2021-03-30 10:23:23 +01:00
samme
f35ab198f7
Docs: fix generic type for GameObjectFactory#existing
2021-03-24 18:00:44 -07:00
Richard Davey
e9da34e39f
Docs update. Fix #5604
2021-03-24 16:30:33 +00:00
Richard Davey
7411c805b8
Version fix
2021-03-24 16:30:33 +00:00
Richard Davey
9aa08a4a4f
Merge pull request #5606 from vforsh/master
...
Fix #5545
2021-03-24 15:46:41 +00:00
Richard Davey
3da806cdb3
Merge pull request #5601 from masterT/master
...
Documentation Group#getMatching example fix
2021-03-24 15:44:35 +00:00
Richard Davey
89c9a4caaa
Merge pull request #5598 from samme/patch-7
...
Docs: fix RenderTexture params
2021-03-24 15:43:57 +00:00
Richard Davey
bd9fbfe077
Adding a Game Object to a Container that already existed in another Container would leave a copy of it on the Display List
2021-03-24 15:39:30 +00:00
Richard Davey
da44c1e3fb
JSDoc fix
2021-03-24 15:39:09 +00:00
Vladislav Forsh
ab202efea7
Handle case when fromAtlas could be undefined
2021-03-17 10:26:47 +03:00
Vladislav Forsh
22edb0d95f
Update fromAtlas property on font change
2021-03-16 19:44:26 +03:00
Vladislav Forsh
2418b7f484
Fix #5545
2021-03-16 18:04:38 +03:00
Simon Thiboutôt
e15f51c3e0
Fix getMatching example.
2021-03-14 08:49:53 -04:00
samme
43bd8d124c
Docs: fix RenderTexture params
2021-03-11 20:53:59 -08:00
Richard Davey
e2f19617f3
3.53.1 Release
2021-03-08 16:37:16 +00:00
Richard Davey
87868d98b9
Uses new Display List methods and added new parameter to destroy. Fix #5576
2021-03-03 18:05:27 +00:00
Richard Davey
425594cb8e
Layer.addChildCallback
and removeChildCallback
will now use the new addToDisplayList
and removeFromDisplayList
Game Object methods.
2021-03-03 18:01:18 +00:00
Richard Davey
27806dad9c
Container.addHandler
will now use the new addToDisplayList
and removeFromDisplayList
Game Object methods.
2021-03-03 18:00:34 +00:00
Richard Davey
d59a7868a3
DisplayList.addChildCallback
will now use the new addToDisplayList
and removeFromDisplayList
Game Object methods.
2021-03-03 18:00:24 +00:00
Richard Davey
a01ed4ff73
Added addToDisplayList
, addToUpdateList
, removeFromDisplayList
and removeFromUpdateList
methods.
2021-03-03 17:58:12 +00:00
Richard Davey
d3536fb138
Merge pull request #5574 from samme/fix/canvas-particle-emitter-follow
...
Fix wrong particle position when following a sprite with Canvas renderer
2021-02-22 10:29:25 +00:00
samme
3248971411
Fix wrong particle follow position
...
Fixes #5457
2021-02-21 11:30:32 -08:00
Richard Davey
6b960464b5
Merge pull request #5504 from endel/patch-1
...
allow to customize pointerEvents for dom elements
2021-02-16 11:29:26 +00:00
Richard Davey
c5766a68a4
Merge pull request #5540 from samme/feature/shape-setDisplaySize
...
Add Phaser.GameObjects.Shape#setDisplaySize()
2021-02-16 11:18:23 +00:00
Richard Davey
4b3a0009ee
Merge pull request #5559 from mattjennings/fix-5558
...
Fixes #5558
2021-02-16 10:56:01 +00:00
Richard Davey
a05da72739
DOMElementCSSRenderer
will now return early if src.node
doesn't exist or is null, rather than trying to extract the style
property from it. Fix #5566
2021-02-16 10:48:35 +00:00
Matt Jennings
72fd48abc4
safely check for renderer in TileSprite
2021-02-11 16:00:24 -06:00
Richard Davey
b40010b86b
Fixed JSDocs
2021-02-04 16:27:02 +00:00
Richard Davey
aaf51dc7ce
The LightsManager.addPointlight
method now has full JSDocs and the attenuation
parameter.
2021-02-04 16:19:19 +00:00
Richard Davey
79468de255
ESLint fix
2021-02-04 16:11:09 +00:00
samme
a8e05cec3e
Add Phaser.GameObjects.Shape#setDisplaySize()
2021-01-30 09:33:21 -08:00
Rex
ee16c63987
Fix parameter name bug
2021-01-29 09:32:45 +08:00
Rex
7f610eef98
Fix input bug
2021-01-21 11:13:33 +08:00
Richard Davey
332d9c85cb
BlitterWebGLRenderer
was calling an out-dated function setRenderDepth
instead of addToRenderList
2021-01-14 17:09:04 +00:00
Endel Dreyer
1919bbdfb8
allow to customize pointerEvents for dom elements
2021-01-14 10:54:29 -03:00
Richard Davey
9116eddf99
Some Bitmap Text fonts were not rendering under Canvas due to the way in which the texture offset was calculated. It now uses the __BASE
frame to get the texture offset, rather than the first frame in the set. Fix #5462 #5501
2021-01-14 11:06:04 +00:00
Andrew Cunningham
724c2f59d5
Update Mesh.js documentation around panZ
...
This adds warnings about orthographic and perspective cameras, documents setOrtho & panZ with sane (ish) default values for the default projection matrix, and updates the example code in the file.
These changes could go further; I would love it if the default mechanisms "agreed" (so that feeding it z=0 vertex values "just worked"), but that's probably a difficult backwards facing change.
Inspired by https://github.com/photonstorm/phaser/issues/5380 .
2021-01-12 14:28:52 -05:00
Richard Davey
15908ce271
getPostPipeline will now return an array of them all if there is more than one instance
2021-01-11 17:17:00 +00:00
Richard Davey
1c8662dc1f
Call addToRenderList
2021-01-07 14:52:08 +00:00
Richard Davey
00d8b6a009
Invoke camera.addToRenderList
method
2021-01-07 12:31:31 +00:00
Richard Davey
3db77c7a10
Use Scene Display List if not available
2021-01-07 12:22:09 +00:00
Richard Davey
c124d4c0a6
Merge pull request #5467 from rexrainbow/improve-postfx-pipeline
...
Remove a type of Post Pipeline instances, not only a single instance
2021-01-04 16:14:48 +00:00
Richard Davey
a19e4770df
The Layer
Game Object has been given all of the missing properties and methods from Game Object to make the class shapes identical. This includes the properties parentContainer
, tabIndex
, input
and body
. You cannot set any of these properties, they are ignored by the Layer itself. It also includes the methods: setInteractive
, disableInteractive
and removeInteractive
. A Layer cannot be enabled for input or have a physics body. Fix #5459
2021-01-04 16:11:33 +00:00
Richard Davey
5457e463b1
Use displayList.getIndex
2021-01-04 12:43:34 +00:00
Richard Davey
2a38e78bb4
Layer.destroy
will now call destroy
on all of its children as well. Layer.destroy
will now emit the DESTROY
event at the start of the method. Fix #5466
2021-01-04 11:59:00 +00:00
Richard Davey
1b0649ed34
Fixed issue causing Cannot read property 'pipelines' of null
to be thrown if using 3.50 with the HEADLESS renderer. Fix #5468
2021-01-04 11:22:00 +00:00
Rex
60c42016b6
Remove a type of Post Pipeline instances, not only a single instance
2020-12-25 17:05:50 +08:00
Richard Davey
3e9350ed05
Added JSDocs
2020-12-14 14:07:57 +00:00
Richard Davey
4fb03907ba
Stricter removal
2020-12-14 13:50:44 +00:00
Richard Davey
cbe1a3219a
JSDoc improvements
2020-12-14 13:33:42 +00:00
Richard Davey
e08b5386dd
Removed follow from render code
2020-12-14 11:51:16 +00:00
Richard Davey
7ff4c5958b
Fire particle from follower position. Fix #5437
2020-12-14 11:46:19 +00:00
Richard Davey
f5376b20a4
BitmapText Drop Shadow working. Fix #5446
2020-12-14 09:34:32 +00:00
Richard Davey
0cd192eec8
Swapped for Color component. Fix #5435
2020-12-11 15:56:21 +00:00
Richard Davey
1a65f50a25
Added new renderDirect
hook which RenderTexture can use. Fix #5431
2020-12-11 13:40:53 +00:00
Richard Davey
9412a93fdb
Remove log
2020-12-11 11:46:28 +00:00
Richard Davey
59e89fa788
All Game Objects will now listen for ADDED_TO_SCENE and REMOVED_FROM_SCENE events and call the handlers. Therefore, removed GO specific implementations.
2020-12-11 11:44:21 +00:00
Richard Davey
32440cb238
Defaults to renderer aspect ratio to help with issues like #5444
2020-12-11 11:05:47 +00:00
Richard Davey
1857c3f2da
Send dimensions and reset scissors
2020-12-10 18:07:41 +00:00
Patrick Sletvold
d327a4da34
Add Config types for ParticleEmitterManager and Mesh
2020-12-10 11:40:01 +01:00
Patrick Sletvold
f1836738a0
Merge remote-tracking branch 'origin/master' into Fix_object_types
2020-12-10 11:23:35 +01:00
Richard Davey
73a0c9d2ce
Remove unused code
2020-12-09 18:04:53 +00:00
Richard Davey
e03c514b03
Fixed WebGL erase mode
2020-12-09 15:55:11 +00:00
Richard Davey
16d4d11939
Final fixes to blitFrame
2020-12-09 15:20:09 +00:00
Richard Davey
1cb6d525be
New blitFrame working. Now to adjust when src > target height.
2020-12-09 14:08:24 +00:00
Richard Davey
827851d02c
Update RenderTexture.js
2020-12-08 17:54:37 +00:00
Richard Davey
0c4eec0fd9
Now using new Render Target approach (texture blend still need to be added)
2020-12-08 17:38:42 +00:00
Richard Davey
f18d615b40
Update SpriteWebGLRenderer.js
2020-12-08 16:15:16 +00:00
Richard Davey
3154bf2e6f
Update Container.js
2020-12-07 13:11:49 +00:00
Richard Davey
79d252589f
Update Rope.js
2020-12-07 13:09:45 +00:00
Richard Davey
d6d5c09552
The Shader
Game Object now supports being able to use a Render Texture as a sampler2D
texture on the shader. Fix #5423
2020-12-07 12:19:42 +00:00
Richard Davey
15a6f50d2c
Fixed functions not appearing in the namespace. Fix #5432
2020-12-07 10:11:47 +00:00
Richard Davey
08b304372c
Made the Render Events global, not WebGL specific and allowed Canvas Renderer to emit them too
2020-12-04 15:07:26 +00:00
Richard Davey
a7f246a241
Swap queue order
2020-12-04 12:55:26 +00:00
Richard Davey
e0ae7ef14e
Update TransformMatrix.js
2020-12-04 12:00:31 +00:00
Richard Davey
edc076674e
New Resize handler. Fix #5412
2020-12-04 11:59:47 +00:00
Richard Davey
4d872e2e9d
RenderTexture.erase
has never worked when using the Canvas Renderer and a texture frame, only with Game Objects. It now works with both. Fix #5422
2020-12-03 15:46:26 +00:00
Richard Davey
6bb6ff8ef4
Updated JSDocs to clarify issue. Fix #4692
2020-12-03 15:14:34 +00:00
Richard Davey
38b6d83462
Fixed Canvas Alpha RenderTexture issue. Fix #5426
2020-12-03 14:48:21 +00:00
Richard Davey
8ff62d40af
Moved event emitter. Fix #5427
2020-12-03 14:34:32 +00:00
Richard Davey
0d6d7848cd
No need for dirty property
2020-12-03 14:31:54 +00:00
Richard Davey
103b91a69d
Add attenuation parameter and fixed color divisor
2020-12-03 12:52:36 +00:00
Richard Davey
8174ec2daf
Fixed light distance and max test
2020-12-03 11:11:41 +00:00
Richard Davey
732b188691
Removed light pool, used RGB object, much better light culling.
2020-12-02 17:57:12 +00:00
Richard Davey
97fd175e73
Extends Circle, because it is! Removed loads of pointless setters.
2020-12-02 17:56:53 +00:00
Richard Davey
639b9bfc84
Added beginDraw
, batchDraw
, batchDrawFrame
and endDraw
methods for full batch control over the drawing.
2020-12-02 16:07:58 +00:00
Richard Davey
35146e72ed
Removed Light Layer and moved Point Light to its own Game Object
2020-12-02 13:48:38 +00:00
Richard Davey
375d6fa196
Updated docs
2020-12-02 13:15:27 +00:00
Richard Davey
361704f048
Only reset post pipeline if it has one. Fix #5421
2020-12-02 12:23:59 +00:00
Richard Davey
9f8f76c690
Removed unused property
2020-12-02 12:23:40 +00:00
Richard Davey
1868a749cb
Enable Lights Plugin again
2020-12-02 11:11:34 +00:00
Richard Davey
e29626ab2c
Testing Light Layer
2020-12-01 17:24:30 +00:00
Richard Davey
ce6a81c97d
Updated JSDocs
2020-12-01 17:23:53 +00:00
Richard Davey
c1bf08de70
New Point Light class
2020-12-01 17:23:42 +00:00
Richard Davey
35829bcf0d
Added removePostPipeline
. Fix #5419
2020-11-30 10:07:41 +00:00
Richard Davey
15b47e6a54
Testing new Light Layer
2020-11-30 09:46:28 +00:00
Rex
cdfee008ec
Typo
2020-11-29 20:29:38 +08:00
Richard Davey
41a0c192a4
Fix #5413
2020-11-28 15:42:23 +00:00
Richard Davey
6dd40df318
Update LayerCreator.js
2020-11-27 15:14:10 +00:00
Richard Davey
3ec63c6dec
Only remove from displayList if set. Fix #5413
2020-11-27 15:14:04 +00:00
Richard Davey
e96cbde8d6
Added new displayList
property and Layer documentation
2020-11-27 11:13:59 +00:00
Richard Davey
aa06070644
Added the new Layer Game Object
2020-11-26 16:21:21 +00:00
Richard Davey
fdae90089c
Use the new depthList property
2020-11-26 16:21:09 +00:00
Richard Davey
e5f9066072
GameObjects.Components.Depth.depthList
is a new property that all Game Objects that have the Depth Component now have. It contains a reference to the List responsible for managing the depth sorting of the Game Object. This is typically the Scene Display List, but can also be a Layer. It allows the Depth component to queue a depth sort directly on the list it belongs to now, rather than just the Scene.
2020-11-26 16:20:54 +00:00
Richard Davey
a2f0a815d6
Reset textures before draw
2020-11-26 14:20:01 +00:00
Richard Davey
c8cdf9fde2
Fixed Render Texture crop
2020-11-26 11:28:25 +00:00
Richard Davey
0ee1338765
Better post pipeline call (less code)
2020-11-26 09:51:40 +00:00
Richard Davey
09c49ac288
Fixed emitter mask pipeline
2020-11-24 14:52:57 +00:00
Richard Davey
d2e2e86ef1
Updated accessor
2020-11-23 16:22:11 +00:00
Richard Davey
2e4cfde102
Updated post pipeline
2020-11-23 16:18:30 +00:00
Richard Davey
ec5da6930c
Added post pipeline support to all Game Objects
2020-11-23 16:17:13 +00:00
Richard Davey
28d925b875
JSDoc fixes
2020-11-23 15:06:45 +00:00
Richard Davey
417f7684c3
More integer to number changes
2020-11-23 10:32:00 +00:00
Richard Davey
3f511a73cd
Replace integer[] with number[]
2020-11-23 10:23:10 +00:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
5ca5a63038
Testing new Lights
2020-11-23 10:19:31 +00:00
Richard Davey
30c2eb5d0e
Ability to link Post Pipeline to owner object
2020-11-20 17:29:42 +00:00
Richard Davey
78b75efb8c
JSDoc fix
2020-11-20 16:03:03 +00:00
Richard Davey
df3b7d5f79
JSDoc fixes
2020-11-20 15:47:35 +00:00
Richard Davey
ebf6b254dd
Fixed JSDocs
2020-11-20 15:31:43 +00:00
Richard Davey
b64f2cc4d0
Added ability to skip post pipeline per object
2020-11-20 15:18:19 +00:00
Richard Davey
e7b85b08af
Fixed batchLight
2020-11-20 13:05:32 +00:00
Richard Davey
c603db23ce
Fix docs and lint errors #5374
2020-11-20 11:43:45 +00:00
Richard Davey
5233366190
Merge pull request #5374 from pirateksh/patch-2
...
Added loadMediaStream method
2020-11-20 11:41:10 +00:00
Richard Davey
401487d4b1
Merge pull request #5367 from rexrainbow/bugfix-text.basicWordWrap
...
Don't add white space when measure last word of a line
2020-11-20 11:37:21 +00:00
Richard Davey
299e105f6e
Update RenderTexture.js
2020-11-20 10:05:33 +00:00
Richard Davey
951b284c6e
Fixed RenderTexture.fill
2020-11-20 10:05:19 +00:00
Richard Davey
e2f7ca40b2
Fixed camera zoom and origin. draw and drawFrame work now.
2020-11-19 23:04:25 +00:00
Richard Davey
c33a5598ab
Trying to align drawFrame
2020-11-19 18:16:18 +00:00
Richard Davey
500d33f6b9
Set camera zoom
2020-11-19 18:07:33 +00:00
Richard Davey
91924be2ee
Update RenderTextureWebGLRenderer.js
2020-11-19 16:40:35 +00:00
Richard Davey
7562683cfb
Lots of tiny fixes and updates
2020-11-19 16:40:31 +00:00
Richard Davey
216f74bb58
Use Single Pipeline and force texture refresh
2020-11-19 11:43:55 +00:00
Richard Davey
d848a5e2ba
Now using new Render Target. Removed lots of out-dated properties and tidied up methods.
2020-11-19 11:38:09 +00:00
Richard Davey
7ad580dd29
Using new Render Target
2020-11-19 11:37:49 +00:00
Richard Davey
e36a086e5d
Updated data types
2020-11-17 16:50:36 +00:00
Richard Davey
00c7b1d79e
Destroy on reset!
2020-11-17 16:34:52 +00:00
Richard Davey
782a841eeb
Added getPostPipeline method
2020-11-17 16:19:40 +00:00
Richard Davey
0658820b79
Clear post pipelines
2020-11-17 16:19:30 +00:00
Richard Davey
26a1d0185a
Update RenderTexture.js
2020-11-17 16:19:18 +00:00
Richard Davey
080677f28c
Set on creation, not in the component
2020-11-17 14:08:09 +00:00
Richard Davey
dfabaac634
Allow Rope to have post-pipeline
2020-11-10 16:27:12 +00:00
Richard Davey
cccf9bb163
Fixed Rope
2020-11-10 16:17:28 +00:00
Richard Davey
f02325fff0
Merge pull request #5386 from PhaserEditor2D/patch-1
...
Updates geom, width and height of the Ellipse GO
2020-11-09 17:03:56 +00:00
Richard Davey
eee3feb667
Pass Game Object to batchQuad
2020-11-09 13:19:31 +00:00
Richard Davey
39b381d6cc
Clearer responsibility via method parameters
2020-11-09 11:50:41 +00:00
Phaser Editor 2D
60541e861b
Updates geom, width and height of the Ellipse GO
...
Updates the `width`, `height`, and geometric position of the Ellipse in the `setSize()` method.
This code shows the wrong positioning of the Ellipse: https://codepen.io/phasereditor2d/pen/jOrvexM
To fix it, uncomment lines `21`, `24`, and `25`.
2020-11-07 11:25:30 -05:00
Richard Davey
06c90137c8
Empty parameter means reset pipeline
2020-11-06 15:35:18 +00:00
Richard Davey
d3c70002ea
Removed use of _tempMatrix
from all renderers
2020-11-06 09:44:29 +00:00