Commit graph

16746 commits

Author SHA1 Message Date
Richard Davey
bfbf665676 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-02-04 15:32:43 +00:00
Richard Davey
ae8b052300 Update CHANGELOG-v3.50.md 2021-02-04 15:28:37 +00:00
Richard Davey
d1a08da63d Update RenderConfig.js 2021-02-04 15:28:35 +00:00
Richard Davey
895d684c15
Merge pull request #5521 from edemaine/patch-1
Fix setPolygon documentation
2021-02-04 15:20:02 +00:00
Richard Davey
641a7c5d99
Merge pull request #5533 from veleek/veleek/isometricfix
Fix IsometricWorldToTileXY result
2021-02-04 15:17:54 +00:00
Richard Davey
e5f05fa248
Merge pull request #5541 from samme/feature/scene-prerender-event
Add Phaser.Scenes.Events.PRE_RENDER event
2021-02-04 15:04:07 +00:00
Richard Davey
46f127b0af
Merge pull request #5517 from rexrainbow/input-bug
Fix input bug
2021-02-04 14:59:43 +00:00
Richard Davey
01df296304
Merge pull request #5539 from somechris/from-percent-min-fix
Allow non-zero `min` in `FromPercent`
2021-02-04 14:53:41 +00:00
Richard Davey
f727171717
Merge pull request #5543 from samme/feature/warn-invalid-json
Warn and call onProcessError() for invalid JSON
2021-02-04 14:50:43 +00:00
samme
ff1afb4976 Warn and call onProcessError() for invalid JSON
Then rethrow
2021-02-03 11:58:29 -08:00
Richard Davey
2bfde24f99 Update CHANGELOG-v3.50.md 2021-02-01 15:18:12 +00:00
Richard Davey
a10919391a type fix 2021-02-01 15:17:59 +00:00
Richard Davey
23987112e1 Update WebAudioSound.js
* The `WebAudioSound.audioBuffer` property is no longer private.
* The `WebAudioSound.source` property is no longer private.
* The `WebAudioSound.loopSource` property is no longer private.
* The `WebAudioSound.muteNode` property is no longer private.
* The `WebAudioSound.volumeNode` property is no longer private.
* The `WebAudioSound.pannerNode` property is no longer private.
* The `WebAudioSound.hasEnded` property is no longer private, but _is_ read only.
* The `WebAudioSound.hasLooped` property is no longer private, but _is_ read only.
2021-02-01 15:17:48 +00:00
Richard Davey
c20b06b259 Made most properties public. Fix #5531
* The `WebAudioSoundManager.createAudioContext` method is no longer private.
* The `WebAudioSoundManager.context` property is no longer private.
* The `WebAudioSoundManager.masterMuteNode` property is no longer private.
* The `WebAudioSoundManager.masterVolumeNode` property is no longer private.
* The `WebAudioSoundManager.destination` property is no longer private.
2021-02-01 15:17:37 +00:00
Christian Aistleitner
cbf3957a33 Allow non-zero min in FromPercent
`FromPercent` silently assumed `min` to be 0. Shifting the result by
`min` makes it work as documented and gives a value between `min` and
`max`.

Our uses of `FromPercent` only have `min` at 0, so there is no
regression in our code. This is merely a fix for 3rd party users.
2021-01-31 21:08:46 +01:00
samme
7ba9d7ea8b Docs: update scene event flow (PRE_RENDER) 2021-01-30 11:02:42 -08:00
samme
1145fd41bb Add Phaser.Scenes.Events#PRE_RENDER event
By Phaser.Scenes.Systems#render
2021-01-30 11:02:42 -08: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
Ben Randall
40ff85bdc5 Fix IsometricWorldToTileXY result
IsometricWorldToTileXY returns a tile that is offset by (-0.5, 0.5)
tiles from the expected location.  This fixes the function so that
Tile => World => Tile conversion returns the same value.
2021-01-28 12:25:51 -05:00
Ben Randall
fea65988f4 Load Tiled object properties.
Tiled objects have properties as an array of objects like:

  { name: ..., type: ..., value: ...}

Update the parser to load these using the name/value properties instead
of just treating it as an array and loading properties named '0', '1',
etc.  This is the same as how properties are handled in ParseTilesets.js
2021-01-23 14:59:33 -05:00
Erik Demaine
3accf46223
Fix setPolygon documentation
The order of arguments in `Body.setPolygon`'s documentation was the opposite from the actual code.
2021-01-22 20:13:25 -05:00
Rex
7f610eef98 Fix input bug 2021-01-21 11:13:33 +08:00
Richard Davey
1ebfdef9e8 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-01-20 09:45:43 +00:00
Richard Davey
5e9db79fab Update CHANGELOG-v3.50.md 2021-01-20 09:45:39 +00:00
James Pettit
44fb0e2086
Fix typing of MapData objects.
I believe that objects is going to be an array as the result of calling this function: 7834095789/src/tilemaps/parsers/tiled/ParseObjectLayers.js (L20)

I'm not 100% sure on the type of the array elements (Phaser.Types.Tilemaps.ObjectLayerConfig), but that appears to be what ParseObjectLayers returns.
2021-01-19 15:17:12 -08:00
Richard Davey
7834095789
Merge pull request #5512 from andrewstart/master
Move webpack loaders to dev dependencies.
2021-01-19 13:30:04 +00:00
Richard Davey
ee6a543a3b Update CHANGELOG-v3.50.md 2021-01-19 09:51:52 +00:00
Richard Davey
a324b0487e Specify globalObject name and include IE9 buid 2021-01-19 09:41:41 +00:00
Richard Davey
67771d7645 Specify globalObject name 2021-01-19 09:41:31 +00:00
Richard Davey
c9b68c167a Bail out of Device tests if running inside a Web Worker 2021-01-19 09:40:59 +00:00
Richard Davey
e0d22da461 IE9 polyfills are no longer part of the core build 2021-01-19 09:40:30 +00:00
Richard Davey
5e1da21c4d Created new IE9 specific build 2021-01-19 09:40:09 +00:00
Andrew Start
f1f8b50530
Move webpack loaders to dev dependencies. 2021-01-19 00:41:35 -05:00
Richard Davey
13c7558748 Update README.md 2021-01-17 10:15:11 +00:00
Richard Davey
9a468adadc Update README.md 2021-01-17 10:09:12 +00:00
Richard Davey
353740e1e1 Update CHANGELOG-v3.50.md 2021-01-14 17:09:08 +00: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
a7498e5994 Preparing for 3.53.0 dev 2021-01-14 11:35:44 +00:00
Richard Davey
a7308da7a3 Update CHANGELOG-v3.50.md 2021-01-14 11:19:48 +00:00
Richard Davey
13cb430893 3.52.0 Release 2021-01-14 11:17:30 +00:00
Richard Davey
0429dacee3 3.52.0 TS Defs 2021-01-14 11:13:40 +00:00
Richard Davey
61febe8adf Update CHANGELOG-v3.50.md 2021-01-14 11:06:09 +00: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
Richard Davey
b1697f5e09 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-01-14 10:19:38 +00:00
Richard Davey
3db71dec6a Update CHANGELOG-v3.50.md 2021-01-14 10:19:27 +00:00
Richard Davey
357a4fc82d AtlasJSONFile, AtlasXMLFile, BitmapFontFile and UnityAtlasFile will now call File.pendingDestroy, clearing up the resources it used during load and emiting a missing FILE_COMPLETE event. Fix #5495 2021-01-14 10:19:24 +00:00
Richard Davey
b9162847bb
Merge pull request #5498 from lackhand/patch-1
Update Mesh.js documentation around panZ
2021-01-14 10:02:12 +00:00
Richard Davey
49cb5999d1 Update CHANGELOG-v3.50.md 2021-01-14 09:59:28 +00:00