Skip to content

Commit e762a89

Browse files
committed
3.20.1 dist files
1 parent 24029b2 commit e762a89

6 files changed

Lines changed: 153 additions & 132 deletions

dist/phaser-arcade-physics.js

Lines changed: 50 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5300,7 +5300,7 @@ var CONST = {
53005300
* @type {string}
53015301
* @since 3.0.0
53025302
*/
5303-
VERSION: '3.20.0',
5303+
VERSION: '3.20.1',
53045304

53055305
BlendModes: __webpack_require__(52),
53065306

@@ -72477,7 +72477,7 @@ var SceneManager = new Class({
7247772477
},
7247872478

7247972479
/**
72480-
* Runs the given Scene, but does not change the state of this Scene.
72480+
* Runs the given Scene.
7248172481
*
7248272482
* If the given Scene is paused, it will resume it. If sleeping, it will wake it.
7248372483
* If not running at all, it will be started.
@@ -72515,7 +72515,7 @@ var SceneManager = new Class({
7251572515
// Sleeping?
7251672516
scene.sys.wake(data);
7251772517
}
72518-
else if (scene.sys.isBooted && !scene.sys.isActive())
72518+
else if (scene.sys.isPaused())
7251972519
{
7252072520
// Paused?
7252172521
scene.sys.resume(data);
@@ -103919,7 +103919,7 @@ var DynamicTilemapLayer = new Class({
103919103919
*/
103920103920
setCollision: function (indexes, collides, recalculateFaces, updateLayer)
103921103921
{
103922-
TilemapComponents.SetCollision(indexes, collides, recalculateFaces, this, updateLayer);
103922+
TilemapComponents.SetCollision(indexes, collides, recalculateFaces, this.layer, updateLayer);
103923103923

103924103924
return this;
103925103925
},
@@ -129745,7 +129745,9 @@ var Path = new Class({
129745129745
},
129746129746

129747129747
/**
129748-
* [description]
129748+
* Returns a randomly chosen point anywhere on the path. This follows the same rules as `getPoint` in that it may return a point on any Curve inside this path.
129749+
*
129750+
* When calling this method multiple times, the points are not guaranteed to be equally spaced spatially.
129749129751
*
129750129752
* @method Phaser.Curves.Path#getRandomPoint
129751129753
* @since 3.0.0
@@ -129754,7 +129756,7 @@ var Path = new Class({
129754129756
*
129755129757
* @param {Phaser.Math.Vector2} [out] - `Vector2` instance that should be used for storing the result. If `undefined` a new `Vector2` will be created.
129756129758
*
129757-
* @return {Phaser.Math.Vector2} [description]
129759+
* @return {Phaser.Math.Vector2} The modified `out` object, or a new `Vector2` if none was provided.
129758129760
*/
129759129761
getRandomPoint: function (out)
129760129762
{
@@ -129764,14 +129766,16 @@ var Path = new Class({
129764129766
},
129765129767

129766129768
/**
129767-
* Creates a straight Line Curve from the ending point of the Path to the given coordinates.
129769+
* Divides this Path into a set of equally spaced points,
129770+
*
129771+
* The resulting points are equally spaced with respect to the points' position on the path, but not necessarily equally spaced spatially.
129768129772
*
129769129773
* @method Phaser.Curves.Path#getSpacedPoints
129770129774
* @since 3.0.0
129771129775
*
129772-
* @param {integer} [divisions=40] - The X coordinate of the line's ending point, or the line's ending point as a `Vector2`.
129776+
* @param {integer} [divisions=40] - The amount of points to divide this Path into.
129773129777
*
129774-
* @return {Phaser.Math.Vector2[]} [description]
129778+
* @return {Phaser.Math.Vector2[]} A list of the points this path was subdivided into.
129775129779
*/
129776129780
getSpacedPoints: function (divisions)
129777129781
{
@@ -129793,16 +129797,16 @@ var Path = new Class({
129793129797
},
129794129798

129795129799
/**
129796-
* [description]
129800+
* Returns the starting point of the Path.
129797129801
*
129798129802
* @method Phaser.Curves.Path#getStartPoint
129799129803
* @since 3.0.0
129800129804
*
129801129805
* @generic {Phaser.Math.Vector2} O - [out,$return]
129802129806
*
129803-
* @param {Phaser.Math.Vector2} [out] - [description]
129807+
* @param {Phaser.Math.Vector2} [out] - `Vector2` instance that should be used for storing the result. If `undefined` a new `Vector2` will be created.
129804129808
*
129805-
* @return {Phaser.Math.Vector2} [description]
129809+
* @return {Phaser.Math.Vector2} The modified `out` object, or a new Vector2 if none was provided.
129806129810
*/
129807129811
getStartPoint: function (out)
129808129812
{
@@ -129812,15 +129816,15 @@ var Path = new Class({
129812129816
},
129813129817

129814129818
/**
129815-
* Creates a line curve from the previous end point to x/y
129819+
* Creates a line curve from the previous end point to x/y.
129816129820
*
129817129821
* @method Phaser.Curves.Path#lineTo
129818129822
* @since 3.0.0
129819129823
*
129820-
* @param {(number|Phaser.Math.Vector2)} x - [description]
129821-
* @param {number} [y] - [description]
129824+
* @param {(number|Phaser.Math.Vector2)} x - The X coordinate of the line's end point, or a `Vector2` containing the entire end point.
129825+
* @param {number} [y] - The Y coordinate of the line's end point, if a number was passed as the X parameter.
129822129826
*
129823-
* @return {Phaser.Curves.Path} [description]
129827+
* @return {Phaser.Curves.Path} This Path object.
129824129828
*/
129825129829
lineTo: function (x, y)
129826129830
{
@@ -129838,17 +129842,15 @@ var Path = new Class({
129838129842
return this.add(new LineCurve([ end.x, end.y, this._tmpVec2B.x, this._tmpVec2B.y ]));
129839129843
},
129840129844

129841-
// Creates a spline curve starting at the previous end point, using the given parameters
129842-
129843129845
/**
129844-
* [description]
129846+
* Creates a spline curve starting at the previous end point, using the given points on the curve.
129845129847
*
129846129848
* @method Phaser.Curves.Path#splineTo
129847129849
* @since 3.0.0
129848129850
*
129849-
* @param {Phaser.Math.Vector2[]} points - [description]
129851+
* @param {Phaser.Math.Vector2[]} points - The points the newly created spline curve should consist of.
129850129852
*
129851-
* @return {Phaser.Curves.Path} [description]
129853+
* @return {Phaser.Curves.Path} This Path object.
129852129854
*/
129853129855
splineTo: function (points)
129854129856
{
@@ -129858,28 +129860,37 @@ var Path = new Class({
129858129860
},
129859129861

129860129862
/**
129861-
* [description]
129863+
* Creates a "gap" in this path from the path's current end point to the given coordinates.
129864+
*
129865+
* After calling this function, this Path's end point will be equal to the given coordinates
129862129866
*
129863129867
* @method Phaser.Curves.Path#moveTo
129864129868
* @since 3.0.0
129865129869
*
129866-
* @param {number} x - [description]
129867-
* @param {number} y - [description]
129870+
* @param {(number|Phaser.Math.Vector2)} x - The X coordinate of the position to move the path's end point to, or a `Vector2` containing the entire new end point.
129871+
* @param {number} y - The Y coordinate of the position to move the path's end point to, if a number was passed as the X coordinate.
129868129872
*
129869-
* @return {Phaser.Curves.Path} [description]
129873+
* @return {Phaser.Curves.Path} This Path object.
129870129874
*/
129871129875
moveTo: function (x, y)
129872129876
{
129873-
return this.add(new MovePathTo(x, y));
129877+
if (x instanceof Vector2)
129878+
{
129879+
return this.add(new MovePathTo(x.x, x.y));
129880+
}
129881+
else
129882+
{
129883+
return this.add(new MovePathTo(x, y));
129884+
}
129874129885
},
129875129886

129876129887
/**
129877-
* [description]
129888+
* Converts this Path to a JSON object containing the path information and its consitutent curves.
129878129889
*
129879129890
* @method Phaser.Curves.Path#toJSON
129880129891
* @since 3.0.0
129881129892
*
129882-
* @return {Phaser.Types.Curves.JSONPath} [description]
129893+
* @return {Phaser.Types.Curves.JSONPath} The JSON object containing this path's data.
129883129894
*/
129884129895
toJSON: function ()
129885129896
{
@@ -129913,7 +129924,7 @@ var Path = new Class({
129913129924
},
129914129925

129915129926
/**
129916-
* [description]
129927+
* Disposes of this Path, clearing its internal references to objects so they can be garbage-collected.
129917129928
*
129918129929
* @method Phaser.Curves.Path#destroy
129919129930
* @since 3.0.0
@@ -137945,10 +137956,12 @@ var UpdateList = new Class({
137945137956
this._active = [];
137946137957
this._destroy = [];
137947137958

137959+
this.removeAllListeners();
137960+
137948137961
var eventEmitter = this.systems.events;
137949137962

137950137963
eventEmitter.off(SceneEvents.PRE_UPDATE, this.preUpdate, this);
137951-
eventEmitter.off(SceneEvents.UPDATE, this.update, this);
137964+
eventEmitter.off(SceneEvents.UPDATE, this.sceneUpdate, this);
137952137965
eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this);
137953137966
},
137954137967

@@ -137964,7 +137977,7 @@ var UpdateList = new Class({
137964137977
{
137965137978
this.shutdown();
137966137979

137967-
this.scene.sys.events.off(SceneEvents.START, this.start, this);
137980+
this.systems.events.off(SceneEvents.START, this.start, this);
137968137981

137969137982
this.scene = null;
137970137983
this.systems = null;
@@ -139634,8 +139647,6 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent
139634139647
renderer.setBlendMode(0);
139635139648
}
139636139649

139637-
// var alpha = container._alpha;
139638-
139639139650
var alphaTopLeft = container.alphaTopLeft;
139640139651
var alphaTopRight = container.alphaTopRight;
139641139652
var alphaBottomLeft = container.alphaBottomLeft;
@@ -139646,7 +139657,6 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent
139646139657

139647139658
var list = children;
139648139659
var childCount = children.length;
139649-
var current = renderer.mask;
139650139660

139651139661
for (var i = 0; i < childCount; i++)
139652139662
{
@@ -139690,15 +139700,7 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent
139690139700

139691139701
var mask = child.mask;
139692139702

139693-
current = renderer.currentMask;
139694-
139695-
if (current.mask && current.mask !== mask)
139696-
{
139697-
// Render out the previously set mask
139698-
current.mask.postRenderWebGL(renderer, current.camera);
139699-
}
139700-
139701-
if (mask && current.mask !== mask)
139703+
if (mask)
139702139704
{
139703139705
mask.preRenderWebGL(renderer, child, camera);
139704139706
}
@@ -139727,6 +139729,11 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent
139727139729

139728139730
child.setScrollFactor(childScrollFactorX, childScrollFactorY);
139729139731

139732+
if (mask)
139733+
{
139734+
mask.postRenderWebGL(renderer, camera);
139735+
}
139736+
139730139737
renderer.newType = false;
139731139738
}
139732139739
};

dist/phaser-arcade-physics.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)