Skip to content

Commit

Permalink
3.55.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed May 26, 2021
1 parent f870e33 commit 7275335
Show file tree
Hide file tree
Showing 9 changed files with 94 additions and 74 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Grab the source and join the fun!

<div align="center"><img src="https://phaser.io/images/github/news.jpg"></div>

> 24th May 2021
> 26th May 2021
After 13 beta releases, over 200 resolved issues, thousands of lines of new code and the culmination of over 6 months incredibly hard work, Phaser 3.50 was finally released in December 2020 and we're continuing with updates into 2021 with this new 3.55 release. 3.55 focuses mostly on fixing issues, but also addresses a performance issue with mixing Sprites and Graphics objects together.

Expand Down Expand Up @@ -119,13 +119,13 @@ npm install phaser
[Phaser is on jsDelivr](https://www.jsdelivr.com/package/npm/phaser) which is a "super-fast CDN for developers". Include the following in your html:

```html
<script src="//cdn.jsdelivr.net/npm/phaser@3.55.0/dist/phaser.js"></script>
<script src="//cdn.jsdelivr.net/npm/phaser@3.55.1/dist/phaser.js"></script>
```

or the minified version:

```html
<script src="//cdn.jsdelivr.net/npm/phaser@3.55.0/dist/phaser.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/phaser@3.55.1/dist/phaser.min.js"></script>
```

### API Documentation
Expand Down Expand Up @@ -195,7 +195,7 @@ Create an `index.html` page locally and paste the following code into it:
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/phaser@3.55.0/dist/phaser-arcade-physics.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/phaser@3.55.1/dist/phaser-arcade-physics.min.js"></script>
</head>
<body>

Expand Down Expand Up @@ -347,8 +347,8 @@ All rights reserved.

"Above all, video games are meant to be just one thing: fun. Fun for everyone." - Satoru Iwata

[get-js]: https://github.com/photonstorm/phaser/releases/download/v3.55.0/phaser.js
[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v3.55.0/phaser.min.js
[get-js]: https://github.com/photonstorm/phaser/releases/download/v3.55.1/phaser.js
[get-minjs]: https://github.com/photonstorm/phaser/releases/download/v3.55.1/phaser.min.js
[clone-http]: https://github.com/photonstorm/phaser.git
[clone-ssh]: git@github.com:photonstorm/phaser.git
[clone-ghwin]: github-windows://openRepo/https://github.com/photonstorm/phaser
Expand Down
37 changes: 21 additions & 16 deletions dist/phaser-arcade-physics.js
Original file line number Diff line number Diff line change
Expand Up @@ -3845,21 +3845,25 @@ var GameObject = new Class({
* @method Phaser.GameObjects.GameObject#destroy
* @fires Phaser.GameObjects.Events#DESTROY
* @since 3.0.0
*
* @param {boolean} [fromScene=false] - `True` if this Game Object is being destroyed by the Scene, `false` if not.
*/
destroy: function ()
destroy: function (fromScene)
{
// This Game Object has already been destroyed
if (!this.scene || this.ignoreDestroy)
{
return;
}

if (fromScene === undefined) { fromScene = false; }

if (this.preDestroy)
{
this.preDestroy.call(this);
}

this.emit(Events.DESTROY, this);
this.emit(Events.DESTROY, this, fromScene);

this.removeAllListeners();

Expand Down Expand Up @@ -4864,12 +4868,12 @@ var File = new Class({
*/
onLoad: function (xhr, event)
{

// On iOS, Capacitor often runs on a capacitor:// protocol, meaning local files are served from capacitor:// rather than file://
// See: https://github.com/photonstorm/phaser/issues/5685
// See: https://github.com/photonstorm/phaser/issues/5685

var isLocalFile = xhr.responseURL && (xhr.responseURL.indexOf('file://') === 0 || xhr.responseURL.indexOf('capacitor://') === 0);

var localFileOk = ( isLocalFile && event.target.status === 0);
var localFileOk = (isLocalFile && event.target.status === 0);

var success = !(event.target && event.target.status !== 200) || localFileOk;

Expand Down Expand Up @@ -7054,7 +7058,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
VERSION: '3.55.0',
VERSION: '3.55.1',

BlendModes: __webpack_require__(35),

Expand Down Expand Up @@ -27233,7 +27237,7 @@ var FillPathWebGL = function (pipeline, calcMatrix, src, alpha, dx, dy)
var tx2 = calcMatrix.getX(x2, y2);
var ty2 = calcMatrix.getY(x2, y2);

pipeline.batchTri(tx0, ty0, tx1, ty1, tx2, ty2, fillTintColor, fillTintColor, fillTintColor);
pipeline.batchTri(src, tx0, ty0, tx1, ty1, tx2, ty2, 0, 0, 1, 1, fillTintColor, fillTintColor, fillTintColor, 1);
}
};

Expand Down Expand Up @@ -139188,15 +139192,16 @@ module.exports = 'addedtoscene';

/**
* The Game Object Destroy Event.
*
*
* This event is dispatched when a Game Object instance is being destroyed.
*
*
* Listen for it on a Game Object instance using `GameObject.on('destroy', listener)`.
*
* @event Phaser.GameObjects.Events#DESTROY
* @since 3.0.0
*
*
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object which is being destroyed.
* @param {boolean} fromScene - `True` if this Game Object is being destroyed by the Scene, `false` if not.
*/
module.exports = 'destroy';

Expand Down Expand Up @@ -166655,7 +166660,7 @@ var IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)
x3 = calcMatrix.getX(0, sizeB - height);
y3 = calcMatrix.getY(0, sizeB - height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

// Left Face
Expand All @@ -166676,7 +166681,7 @@ var IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)
x3 = calcMatrix.getX(-sizeA, -height);
y3 = calcMatrix.getY(-sizeA, -height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

// Right Face
Expand All @@ -166697,7 +166702,7 @@ var IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)
x3 = calcMatrix.getX(sizeA, -height);
y3 = calcMatrix.getY(sizeA, -height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

renderer.pipelines.postBatch(src);
Expand Down Expand Up @@ -166922,7 +166927,7 @@ var IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)
var x3 = calcMatrix.getX(0, sizeB - height);
var y3 = calcMatrix.getY(0, sizeB - height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

// Left Face
Expand Down Expand Up @@ -166954,7 +166959,7 @@ var IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)
y2 = calcMatrix.getY(0, sizeB - height);
}

pipeline.batchTri(x0, y0, x1, y1, x2, y2, tint, tint, tint);
pipeline.batchTri(src, x0, y0, x1, y1, x2, y2, 0, 0, 1, 1, tint, tint, tint, 1);
}

// Right Face
Expand Down Expand Up @@ -166986,7 +166991,7 @@ var IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)
y2 = calcMatrix.getY(0, sizeB - height);
}

pipeline.batchTri(x0, y0, x1, y1, x2, y2, tint, tint, tint);
pipeline.batchTri(src, x0, y0, x1, y1, x2, y2, 0, 0, 1, 1, tint, tint, tint, 1);
}

renderer.pipelines.postBatch(src);
Expand Down
2 changes: 1 addition & 1 deletion dist/phaser-arcade-physics.min.js

Large diffs are not rendered by default.

37 changes: 21 additions & 16 deletions dist/phaser-facebook-instant-games.js
Original file line number Diff line number Diff line change
Expand Up @@ -3758,21 +3758,25 @@ var GameObject = new Class({
* @method Phaser.GameObjects.GameObject#destroy
* @fires Phaser.GameObjects.Events#DESTROY
* @since 3.0.0
*
* @param {boolean} [fromScene=false] - `True` if this Game Object is being destroyed by the Scene, `false` if not.
*/
destroy: function ()
destroy: function (fromScene)
{
// This Game Object has already been destroyed
if (!this.scene || this.ignoreDestroy)
{
return;
}

if (fromScene === undefined) { fromScene = false; }

if (this.preDestroy)
{
this.preDestroy.call(this);
}

this.emit(Events.DESTROY, this);
this.emit(Events.DESTROY, this, fromScene);

this.removeAllListeners();

Expand Down Expand Up @@ -5408,12 +5412,12 @@ var File = new Class({
*/
onLoad: function (xhr, event)
{

// On iOS, Capacitor often runs on a capacitor:// protocol, meaning local files are served from capacitor:// rather than file://
// See: https://github.com/photonstorm/phaser/issues/5685
// See: https://github.com/photonstorm/phaser/issues/5685

var isLocalFile = xhr.responseURL && (xhr.responseURL.indexOf('file://') === 0 || xhr.responseURL.indexOf('capacitor://') === 0);

var localFileOk = ( isLocalFile && event.target.status === 0);
var localFileOk = (isLocalFile && event.target.status === 0);

var success = !(event.target && event.target.status !== 200) || localFileOk;

Expand Down Expand Up @@ -9440,7 +9444,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
VERSION: '3.55.0',
VERSION: '3.55.1',

BlendModes: __webpack_require__(37),

Expand Down Expand Up @@ -32121,7 +32125,7 @@ var FillPathWebGL = function (pipeline, calcMatrix, src, alpha, dx, dy)
var tx2 = calcMatrix.getX(x2, y2);
var ty2 = calcMatrix.getY(x2, y2);

pipeline.batchTri(tx0, ty0, tx1, ty1, tx2, ty2, fillTintColor, fillTintColor, fillTintColor);
pipeline.batchTri(src, tx0, ty0, tx1, ty1, tx2, ty2, 0, 0, 1, 1, fillTintColor, fillTintColor, fillTintColor, 1);
}
};

Expand Down Expand Up @@ -155117,15 +155121,16 @@ module.exports = 'addedtoscene';

/**
* The Game Object Destroy Event.
*
*
* This event is dispatched when a Game Object instance is being destroyed.
*
*
* Listen for it on a Game Object instance using `GameObject.on('destroy', listener)`.
*
* @event Phaser.GameObjects.Events#DESTROY
* @since 3.0.0
*
*
* @param {Phaser.GameObjects.GameObject} gameObject - The Game Object which is being destroyed.
* @param {boolean} fromScene - `True` if this Game Object is being destroyed by the Scene, `false` if not.
*/
module.exports = 'destroy';

Expand Down Expand Up @@ -183062,7 +183067,7 @@ var IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)
x3 = calcMatrix.getX(0, sizeB - height);
y3 = calcMatrix.getY(0, sizeB - height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

// Left Face
Expand All @@ -183083,7 +183088,7 @@ var IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)
x3 = calcMatrix.getX(-sizeA, -height);
y3 = calcMatrix.getY(-sizeA, -height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

// Right Face
Expand All @@ -183104,7 +183109,7 @@ var IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)
x3 = calcMatrix.getX(sizeA, -height);
y3 = calcMatrix.getY(sizeA, -height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

renderer.pipelines.postBatch(src);
Expand Down Expand Up @@ -183329,7 +183334,7 @@ var IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)
var x3 = calcMatrix.getX(0, sizeB - height);
var y3 = calcMatrix.getY(0, sizeB - height);

pipeline.batchQuad(x0, y0, x1, y1, x2, y2, x3, y3, tint, tint, tint, tint);
pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 1);
}

// Left Face
Expand Down Expand Up @@ -183361,7 +183366,7 @@ var IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)
y2 = calcMatrix.getY(0, sizeB - height);
}

pipeline.batchTri(x0, y0, x1, y1, x2, y2, tint, tint, tint);
pipeline.batchTri(src, x0, y0, x1, y1, x2, y2, 0, 0, 1, 1, tint, tint, tint, 1);
}

// Right Face
Expand Down Expand Up @@ -183393,7 +183398,7 @@ var IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)
y2 = calcMatrix.getY(0, sizeB - height);
}

pipeline.batchTri(x0, y0, x1, y1, x2, y2, tint, tint, tint);
pipeline.batchTri(src, x0, y0, x1, y1, x2, y2, 0, 0, 1, 1, tint, tint, tint, 1);
}

renderer.pipelines.postBatch(src);
Expand Down
2 changes: 1 addition & 1 deletion dist/phaser-facebook-instant-games.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 7275335

Please sign in to comment.