Commit graph

2763 commits

Author SHA1 Message Date
Richard Davey
da9296eae7
Merge pull request #6038 from samme/patch-10
Docs: correct args in ParticleEmitter#explode()
2022-04-14 15:40:20 +01:00
Richard Davey
4b752aad2e
Merge pull request #6061 from samme/misc/opt-particle-moveTo
Simplify the particle moveTo calculations
2022-04-14 15:39:28 +01:00
Richard Davey
fb6f9d370b
Merge pull request #6060 from samme/feature/particle-moveTo-zero
Allow moving particles to (0, 0)
2022-04-14 15:37:55 +01:00
samme
0b6d26b114
Docs: clarify ParticleEmitter#moveTo
#6046
2022-04-08 09:55:42 -07:00
T.J. L
5e5436c44b Fix copy-paste error in StarRender. 2022-04-02 01:51:12 -07:00
T.J. L
ff4ef2872b Don't overwrite the return values from require() 2022-04-02 01:49:19 -07:00
T.J. L
1551d1b270 Fix kerning for BitmapText on Canvas renderer 2022-04-02 01:33:04 -07:00
samme
d083179cbb Allow moving particles to (0, 0)
moveToX and moveToY are initialized to null instead of 0
2022-03-29 18:20:26 -07:00
samme
8b70cf643d Simplify the moveTo calculation 2022-03-25 11:24:59 -07:00
samme
e12ccfe8a0
Docs: correct Rectangle#setSize() description
Re. #5744 etc.
2022-03-17 11:38:44 -07:00
Rex
24cbfa22bb Add parameter description 2022-03-12 09:48:48 +08:00
Rex
2d1d64047c Destroy game objects safely 2022-03-12 09:43:33 +08:00
samme
0e22b0ecd6
Docs: correct args in ParticleEmitter#explode()
All arguments are optional
2022-03-11 14:00:05 -08:00
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
Richard Davey
7aa7187a0f
Merge pull request #5870 from samme/docs/class-types
Add GroupClassTypeConstructor and ParticleClassConstructor types
2022-02-28 13:53:39 +00:00
Richard Davey
42f23045b2
Merge pull request #5953 from schontz/master
destroy game objects during shutdown safely #5520
2022-02-28 13:46:31 +00:00
Richard Davey
bb13fb8e1c
Merge pull request #6023 from spayton/pub-master
Container game object should supply container reference to child rend…
2022-02-28 13:43:38 +00:00
Richard Davey
14c018f862
Merge pull request #6012 from arbassic/fix-bitmaptext-kerning
Fix kerning in BitmapText rendering
2022-02-28 13:41:33 +00:00
Richard Davey
31de3bda5f
Merge pull request #6021 from rexrainbow/video-spritefx
Can add spriteFx pipeline to Video game object
2022-02-28 13:27:40 +00:00
stu
85396d13ab Container game object should supply container reference to child rendering 2022-02-25 17:56:50 +00:00
Rex
7bc14a9f12 Remove space 2022-02-24 13:03:54 +08:00
Rex
65f9228973 Can add spriteFx pipeline to Video game object 2022-02-24 13:01:30 +08:00
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