Skip to content

Commit

Permalink
3.20.1 dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Oct 15, 2019
1 parent 24029b2 commit e762a89
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 132 deletions.
93 changes: 50 additions & 43 deletions dist/phaser-arcade-physics.js
Original file line number Diff line number Diff line change
Expand Up @@ -5300,7 +5300,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
VERSION: '3.20.0',
VERSION: '3.20.1',

BlendModes: __webpack_require__(52),

Expand Down Expand Up @@ -72477,7 +72477,7 @@ var SceneManager = new Class({
},

/**
* Runs the given Scene, but does not change the state of this Scene.
* Runs the given Scene.
*
* If the given Scene is paused, it will resume it. If sleeping, it will wake it.
* If not running at all, it will be started.
Expand Down Expand Up @@ -72515,7 +72515,7 @@ var SceneManager = new Class({
// Sleeping?
scene.sys.wake(data);
}
else if (scene.sys.isBooted && !scene.sys.isActive())
else if (scene.sys.isPaused())
{
// Paused?
scene.sys.resume(data);
Expand Down Expand Up @@ -103919,7 +103919,7 @@ var DynamicTilemapLayer = new Class({
*/
setCollision: function (indexes, collides, recalculateFaces, updateLayer)
{
TilemapComponents.SetCollision(indexes, collides, recalculateFaces, this, updateLayer);
TilemapComponents.SetCollision(indexes, collides, recalculateFaces, this.layer, updateLayer);

return this;
},
Expand Down Expand Up @@ -129745,7 +129745,9 @@ var Path = new Class({
},

/**
* [description]
* 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.
*
* When calling this method multiple times, the points are not guaranteed to be equally spaced spatially.
*
* @method Phaser.Curves.Path#getRandomPoint
* @since 3.0.0
Expand All @@ -129754,7 +129756,7 @@ var Path = new Class({
*
* @param {Phaser.Math.Vector2} [out] - `Vector2` instance that should be used for storing the result. If `undefined` a new `Vector2` will be created.
*
* @return {Phaser.Math.Vector2} [description]
* @return {Phaser.Math.Vector2} The modified `out` object, or a new `Vector2` if none was provided.
*/
getRandomPoint: function (out)
{
Expand All @@ -129764,14 +129766,16 @@ var Path = new Class({
},

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

/**
* [description]
* Returns the starting point of the Path.
*
* @method Phaser.Curves.Path#getStartPoint
* @since 3.0.0
*
* @generic {Phaser.Math.Vector2} O - [out,$return]
*
* @param {Phaser.Math.Vector2} [out] - [description]
* @param {Phaser.Math.Vector2} [out] - `Vector2` instance that should be used for storing the result. If `undefined` a new `Vector2` will be created.
*
* @return {Phaser.Math.Vector2} [description]
* @return {Phaser.Math.Vector2} The modified `out` object, or a new Vector2 if none was provided.
*/
getStartPoint: function (out)
{
Expand All @@ -129812,15 +129816,15 @@ var Path = new Class({
},

/**
* Creates a line curve from the previous end point to x/y
* Creates a line curve from the previous end point to x/y.
*
* @method Phaser.Curves.Path#lineTo
* @since 3.0.0
*
* @param {(number|Phaser.Math.Vector2)} x - [description]
* @param {number} [y] - [description]
* @param {(number|Phaser.Math.Vector2)} x - The X coordinate of the line's end point, or a `Vector2` containing the entire end point.
* @param {number} [y] - The Y coordinate of the line's end point, if a number was passed as the X parameter.
*
* @return {Phaser.Curves.Path} [description]
* @return {Phaser.Curves.Path} This Path object.
*/
lineTo: function (x, y)
{
Expand All @@ -129838,17 +129842,15 @@ var Path = new Class({
return this.add(new LineCurve([ end.x, end.y, this._tmpVec2B.x, this._tmpVec2B.y ]));
},

// Creates a spline curve starting at the previous end point, using the given parameters

/**
* [description]
* Creates a spline curve starting at the previous end point, using the given points on the curve.
*
* @method Phaser.Curves.Path#splineTo
* @since 3.0.0
*
* @param {Phaser.Math.Vector2[]} points - [description]
* @param {Phaser.Math.Vector2[]} points - The points the newly created spline curve should consist of.
*
* @return {Phaser.Curves.Path} [description]
* @return {Phaser.Curves.Path} This Path object.
*/
splineTo: function (points)
{
Expand All @@ -129858,28 +129860,37 @@ var Path = new Class({
},

/**
* [description]
* Creates a "gap" in this path from the path's current end point to the given coordinates.
*
* After calling this function, this Path's end point will be equal to the given coordinates
*
* @method Phaser.Curves.Path#moveTo
* @since 3.0.0
*
* @param {number} x - [description]
* @param {number} y - [description]
* @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.
* @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.
*
* @return {Phaser.Curves.Path} [description]
* @return {Phaser.Curves.Path} This Path object.
*/
moveTo: function (x, y)
{
return this.add(new MovePathTo(x, y));
if (x instanceof Vector2)
{
return this.add(new MovePathTo(x.x, x.y));
}
else
{
return this.add(new MovePathTo(x, y));
}
},

/**
* [description]
* Converts this Path to a JSON object containing the path information and its consitutent curves.
*
* @method Phaser.Curves.Path#toJSON
* @since 3.0.0
*
* @return {Phaser.Types.Curves.JSONPath} [description]
* @return {Phaser.Types.Curves.JSONPath} The JSON object containing this path's data.
*/
toJSON: function ()
{
Expand Down Expand Up @@ -129913,7 +129924,7 @@ var Path = new Class({
},

/**
* [description]
* Disposes of this Path, clearing its internal references to objects so they can be garbage-collected.
*
* @method Phaser.Curves.Path#destroy
* @since 3.0.0
Expand Down Expand Up @@ -137945,10 +137956,12 @@ var UpdateList = new Class({
this._active = [];
this._destroy = [];

this.removeAllListeners();

var eventEmitter = this.systems.events;

eventEmitter.off(SceneEvents.PRE_UPDATE, this.preUpdate, this);
eventEmitter.off(SceneEvents.UPDATE, this.update, this);
eventEmitter.off(SceneEvents.UPDATE, this.sceneUpdate, this);
eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this);
},

Expand All @@ -137964,7 +137977,7 @@ var UpdateList = new Class({
{
this.shutdown();

this.scene.sys.events.off(SceneEvents.START, this.start, this);
this.systems.events.off(SceneEvents.START, this.start, this);

this.scene = null;
this.systems = null;
Expand Down Expand Up @@ -139634,8 +139647,6 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent
renderer.setBlendMode(0);
}

// var alpha = container._alpha;

var alphaTopLeft = container.alphaTopLeft;
var alphaTopRight = container.alphaTopRight;
var alphaBottomLeft = container.alphaBottomLeft;
Expand All @@ -139646,7 +139657,6 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent

var list = children;
var childCount = children.length;
var current = renderer.mask;

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

var mask = child.mask;

current = renderer.currentMask;

if (current.mask && current.mask !== mask)
{
// Render out the previously set mask
current.mask.postRenderWebGL(renderer, current.camera);
}

if (mask && current.mask !== mask)
if (mask)
{
mask.preRenderWebGL(renderer, child, camera);
}
Expand Down Expand Up @@ -139727,6 +139729,11 @@ var ContainerWebGLRenderer = function (renderer, container, interpolationPercent

child.setScrollFactor(childScrollFactorX, childScrollFactorY);

if (mask)
{
mask.postRenderWebGL(renderer, camera);
}

renderer.newType = false;
}
};
Expand Down
2 changes: 1 addition & 1 deletion dist/phaser-arcade-physics.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit e762a89

Please sign in to comment.