Commit graph

11343 commits

Author SHA1 Message Date
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
Richard Davey
818fbb05c7 Updated log 2018-08-20 16:42:27 +01:00
Richard Davey
74e362f7af
Merge pull request #3956 from rootasjey/fix-documentation
Fix JSDoc in Tilemap
2018-08-20 16:09:04 +01:00
rootasjey
e2c505554a Fix JSDoc in Tilemap 2018-08-20 13:20:23 +02:00
Richard Davey
1d20cf0e19 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-08-18 16:46:06 +01:00
Richard Davey
661070ec6a Updated log 2018-08-18 16:46:03 +01:00
Richard Davey
224d587928
Merge pull request #3907 from iamchristopher/feature-data-manager-changedata-prev-val
Emit previous value with DataManager's `changedata` event
2018-08-18 16:06:47 +01:00
Richard Davey
eb220df3f6
Merge pull request #3947 from padme-amidala/bugfix/3946-fix-export-for-canvas
Fixed an issue where module exports are not named correct for CanvasInterpolation and CanvasPool
2018-08-18 16:04:37 +01:00
Richard Davey
7918f0991d
Merge pull request #3937 from goldfire/goldfire-patch-1
Use correct frame name in pixel perfect hit test
2018-08-18 16:03:07 +01:00
Andre Hofmeister
68900651bf Fixed an issue where module exports are not named correct for CanvasInterpolation and CanvasPool #3946. 2018-08-18 13:30:16 +02:00
YsraelJMM
081f4188df
Resize SVG in the preload.
The third time's the charm.
this.load.svg (key, src, {width: number, height: number}).
2018-08-17 14:24:31 -05:00
James Simpson
1ac7c969ea
Don't set gl.clearColor when no clearBeforeRender
Unless I'm missing something, the `gl.clearColor` command is unnecessary when you have `this.config.clearBeforeRender` set to `false`. This simply moves that into the config check to eliminate an unused command in those situations.
2018-08-17 14:03:17 -05:00
YsraelJMM
fb414129f8
Resizing SVG in the preload (2)
this.load.svg(key, src, {width: number, height: number});
example: https://www.youtube.com/watch?v=Kd7pNjY-FLk
2018-08-17 13:50:23 -05:00
YsraelJMM
1816e529e1
Resizing of the SVG in the preload
One of the main qualities of SVG images, is its scalability, not being able to use this, is to reduce it to be a bit more image. An SVG file has an XML format, so it can be modified with the DOM.
In order to collaborate, I have put the option to modify the parameters of the SVG and in this way make it adaptable.
The modification gives the option of being able to choose the size in the preload to which you want to have the image before rasterizing it; And so avoid the subsequent scaling that will not have the same quality.
You can see the example here: 
https://www.youtube.com/watch?v=Kd7pNjY-FLk
tested in version 3.11 It does not interfere with the original code.
2018-08-17 12:37:35 -05:00
Chris Andrew
f46bd2cacd Fixed documentation for a Vector2 constructor parameter and its ZERO constant. 2018-08-17 00:18:26 +01:00
James Simpson
e4ccc8ec2d
Use correct frame name in pixel perfect hit test
`gameObject.frame.key` doesn't exist and was passing an undefined value to `getPixelAlpha`. This just changes it to the correct `gameObject.frame.name` value.
2018-08-16 12:23:10 -05:00
TadejZupancic
7992924aae
Wrong bounds/displayTextOrigin on BitmapText text change
updateDisplayOrigin needs current width and height, which are not recalculated if the _dirty is not set to true.
2018-08-14 12:15:59 +02:00
Aurélien DUSSAUGE
b14d920581 Replace DistanceBetween with DistanceSquared in closest() and furthest() functions (ArcadePhysics.js) 2018-08-13 21:59:58 +02:00
Eirik S Korsnes
fe748e9dc7 - wrote dot-notated config properties as seperate typedefs
- add some missing properties
2018-08-12 12:19:48 +02:00
iamchristopher
9ef5fde70e Added previous value when changing value 2018-08-09 15:28:56 -04:00
Richard Davey
c94404986c 3.12 Beta 2 Release 2018-08-09 14:16:12 +01:00
Richard Davey
7efb05c76e Updated issues template 2018-08-08 19:34:35 +01:00
Richard Davey
4bdb0de312 The Arcade Physics Body.speed property is now set whenever you set the velocity via setVelocity or setVelocityX or setVelocityY which stops the body velocity being reset to zero if useDamping is enabled. Fix #3888 2018-08-08 17:31:22 +01:00
Richard Davey
fe2ddcf934 Updated jsdocs 2018-08-08 17:03:08 +01:00
Richard Davey
764de08ff4 Camera.ignore can now take nested-arrays of Game Objects and also supports both Groups and Containers. 2018-08-08 16:46:14 +01:00
Richard Davey
84ef115c67 Remove un-used code 2018-08-08 15:01:41 +01:00