Commit graph

11268 commits

Author SHA1 Message Date
Richard Davey
bed2706ca7
Merge pull request #3969 from samme/docs/structs-set-iterate
Correct Structs.Set#iterate docs
2018-08-23 11:39:43 +01:00
samme
fb23367c63 Fix Arcade.World#disable
It was passing the wrong argument to disableBody, so failing.
2018-08-22 13:23:58 -07:00
samme
408b2df350 Correct LightsManager#addLight docs
All arguments are optional
2018-08-22 13:07:41 -07:00
samme
b241315fa1 Correct Structs.Set#iterate docs
callbackScope argument is optional
2018-08-22 13:06:50 -07:00
Richard Davey
57758942d1 Account for trim in pixel perfect hit tests. Fix #3938 2018-08-22 17:11:20 +01:00
Richard Davey
144cfaff8f Previously the Input Manager would create a Touch handler unless the Game Config had input.touch set to false (the default was true). If no such property is set, it no longer defaults to true and instead is set to whatever Device.input.touch returns. On non-touchscreen desktops this means it will now only create one single Pointer, rather than two. 2018-08-22 17:01:21 +01:00
Richard Davey
f3b35f0466 lint fix 2018-08-22 16:14:40 +01:00
Richard Davey
da64e41b2f Fixed Matter require call freaking out webpack 2018-08-22 15:54:00 +01:00
Richard Davey
5bf8fba1de Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-22 15:43:13 +01:00
Richard Davey
dc868f8368 You can now resize SVG files during load, before they are rendered to textures.
Also added scale support and fixed some viewBox settings (#3941)
2018-08-22 15:43:09 +01:00
Richard Davey
e99dfef136 Docs fixes 2018-08-22 15:42:39 +01:00
Richard Davey
b5116edbe7
Merge pull request #3967 from TadejZupancic/patch-14
RenderTexture: Texture is always destroyed (canvas)
2018-08-22 15:14:12 +01:00
TadejZupancic
1fa16f00df
RenderTexture: Texture is always destroyed (canvas)
Forgot to check the flag for canvas renderer.
2018-08-22 15:57:57 +02:00
Richard Davey
bd40360dbc
Merge pull request #3941 from ysraelJMM/master
Resizing of the SVG in the preload
2018-08-22 14:18:40 +01:00
Richard Davey
65fb366ecd Matter updated to 0.14.2. Fix #3929 2018-08-22 14:01:35 +01:00
YsraelJMM
b8371eba7b
SVG rezise preload. svgConfig object
svgConfig, 
contains the width and height. Change zise.
2018-08-21 20:01:38 -05:00
Richard Davey
0dccc3a510 Updated jsdocs. Fix #3849 2018-08-21 23:48:03 +01:00
Richard Davey
2dfe321d67 The getPixelAlpha and getPixel methods in the Texture Manager would allow x/y coordinates from outside the cut area of a frame. It now tests to ensure they're within the frame. Fix #3937 2018-08-21 23:25:08 +01:00
Richard Davey
198f353c9a The default Container Blend Mode is now SKIP_TEST. This allows you to either set a blend mode for a Container, in which case all children use that blend mode. Or, you can set a blend mode on the children and the children will render using their own blend modes, as the Container doesn't have one set. The WebGL and Canvas Renderer functions have also been updated to support this change. Fix #3684 2018-08-21 22:07:35 +01:00
Richard Davey
01290afda9 A Game Object couldn't have a blend mode of SKIP_TEST set by using the getter or the setBlendMode method. 2018-08-21 21:54:38 +01:00
Richard Davey
502b66bcac lint fix 2018-08-21 18:13:53 +01:00
Richard Davey
55c2de28b7 Updated log 2018-08-21 18:03:52 +01:00
Richard Davey
f8b3fcf539 Cull Tiles now needs a render order for the layer data. 2018-08-21 18:02:00 +01:00
Richard Davey
838cdfc418 Added renderOrder property, setRenderOrder method and updated upload to use the setting. 2018-08-21 18:01:47 +01:00
Richard Davey
cc5bf41b25 Added renderOrder property and setRenderOrder method. 2018-08-21 18:01:33 +01:00
Richard Davey
b0888d2762 Added renderOrder property, setRenderOrder and apply them during layer creation. 2018-08-21 17:59:28 +01:00
Richard Davey
a7847e9cb9 Added renderOrder property. 2018-08-21 17:55:40 +01:00
Richard Davey
a462250cd9 Now extracts the renderorder property from the Tiled JSON 2018-08-21 17:54:49 +01:00
Richard Davey
a98b3c3b15 In Matter.js if you scaled a Body it would only scale correctly once, due to the way Matter handles scaling internally. We now automatically reset the Matter scale before applying the new value, which allows you to keep the Phaser and Matter object scales in sync. Fix #3785 #3951 2018-08-21 15:55:39 +01:00
Richard Davey
ae01830a5e Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-21 15:40:46 +01:00
Richard Davey
a7bbbb657d Updated log 2018-08-21 15:40:40 +01:00
Richard Davey
36dd7ae405
Merge pull request #3819 from samme/feature/createFromObjects
Copy custom properties in createFromObjects()
2018-08-21 15:38:48 +01:00
Richard Davey
17a9fd1489
Merge pull request #3961 from TadejZupancic/patch-12
RenderTexture: Texture is always destroyed
2018-08-21 15:25:53 +01:00
TadejZupancic
bff7f99fe1
Update RenderTexture.js 2018-08-21 15:40:10 +02:00
TadejZupancic
50a3555cad
RenderTexture: Texture is always destroyed
Texture is now destroyed only if it was not saved to the TextureManager, so it can be reused.
2018-08-21 15:32:10 +02:00
Richard Davey
3cc17f5c97 The RandomDataGenerator will now create a default random seed if you instantiate your own version of the class (instead of using Phaser.Math.RND) and don't provide a seed for it 2018-08-21 14:06:41 +01:00
Richard Davey
8d1caff0a4 Updated argument name 2018-08-21 02:29:54 +01:00
Richard Davey
0eef6f1bb9 Updated scroll factor docs to clarify impact on physics bodies #3810 2018-08-20 19:19:53 +01:00
Richard Davey
f70b4f89b1 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-20 18:46:13 +01:00
Richard Davey
761415f051 Updated log 2018-08-20 18:46:10 +01:00
Richard Davey
f6e25ebfd1
Merge pull request #3850 from polarstoat/animation-docs-fix
Add AnimationManager.generateFrameNumbers documentation
2018-08-20 18:31:35 +01:00
Richard Davey
6efb88b24b
Merge pull request #3900 from thejonanshow/upgrade_konami_code
Correct Konami code in createCombo documentation.
2018-08-20 18:30:18 +01:00
Richard Davey
817dd94d73
Merge pull request #3916 from ampled/gameconfig-jsdoc
Typedefs for nested GameConfig-objects
2018-08-20 18:27:06 +01:00
Richard Davey
28b1f0cfe6
Merge pull request #3926 from Mursaat/arcade-squared-dist
Replace DistanceBetween with DistanceSquared in closest() and furthest() functions (ArcadePhysics.js)
2018-08-20 18:26:21 +01:00
Richard Davey
4faa0ed228
Merge pull request #3942 from goldfire/small-pre-render-optimize
Don't set gl.clearColor when no clearBeforeRender
2018-08-20 18:22:21 +01:00
Richard Davey
e71d72ec66
Merge pull request #3927 from TadejZupancic/patch-11
Wrong bounds/displayOrigin on BitmapText text change
2018-08-20 18:21:15 +01:00
Richard Davey
27c3cc30ac Previously, changing a Text object by setting its text property directly wouldn't change the text being rendered as using setText was the expected way to change what was being displayed. Internally the text property has been renamed to _text and flagged as private, and a new getter / setter for text has been added, which hands over to the setText method, meaning you can now use both ways of setting the text. Fix #3919 2018-08-20 17:41:05 +01:00
Richard Davey
54dbdce1c7 Now calls the correct frame resize method. Fix #3913 2018-08-20 17:06:06 +01:00
Richard Davey
5da3c811f2 Updated beta 2018-08-20 17:04:59 +01:00
Richard Davey
20be4e3c60 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-20 16:42:29 +01:00