Skip to content

Commit

Permalink
v3.88.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
photonstorm committed Feb 12, 2025
1 parent ec9f5bb commit e7d4798
Show file tree
Hide file tree
Showing 9 changed files with 152 additions and 100 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ npm install phaser
[Phaser is on jsDelivr](https://www.jsdelivr.com/package/npm/phaser) which is a "super-fast CDN for developers". Include _either_ of the following in your html:

```html
<script src="//cdn.jsdelivr.net/npm/[email protected].0/dist/phaser.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected].0/dist/phaser.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected].1/dist/phaser.js"></script>
<script src="//cdn.jsdelivr.net/npm/[email protected].1/dist/phaser.min.js"></script>
```

It is also available from Cloudflare's [cdnjs](https://cdnjs.com/libraries/phaser):

```html
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.88.0/phaser.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.88.0/phaser.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.88.1/phaser.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.88.1/phaser.min.js"></script>
```

## Phaser TypeScript Definitions
Expand Down
59 changes: 36 additions & 23 deletions dist/phaser-arcade-physics.js
Original file line number Diff line number Diff line change
Expand Up @@ -15663,7 +15663,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
VERSION: '3.88',
VERSION: '3.88.1',

/**
* Phaser Release Version as displayed in the console.log header URL.
Expand Down Expand Up @@ -219649,7 +219649,7 @@ var NumberTweenBuilder = function (parent, config, defaults)
var easeParams = GetFastValue(config, 'easeParams', defaults.easeParams);
var ease = GetFastValue(config, 'ease', defaults.ease);

var ops = GetFastValueOp('value', to);
var ops = GetValueOp('value', to);

var tween = new Tween(parent, targets);

Expand Down Expand Up @@ -225883,6 +225883,7 @@ var SafeRange = __webpack_require__(82011);
*
* Optionally you can specify a start and end index. For example if the array had 100 elements,
* and you set `startIndex` to 0 and `endIndex` to 50, it would search only the first 50 elements.
*
* You can also specify a negative `startIndex`, such as `-1`, which would start the search at the end of the array
*
* @function Phaser.Utils.Array.GetFirst
Expand All @@ -225891,39 +225892,51 @@ var SafeRange = __webpack_require__(82011);
* @param {array} array - The array to search.
* @param {string} [property] - The property to test on each array element.
* @param {*} [value] - The value to test the property against. Must pass a strict (`===`) comparison check.
* @param {number} [startIndex=0] - An optional start index to search from. You cn also set `startIndex` to -1 to start the search from the end of the array.
* @param {number} [startIndex=0] - An optional start index to search from. You can also set `startIndex` to -1 to start the search from the end of the array.
* @param {number} [endIndex=array.length] - An optional end index to search up to (but not included)
*
* @return {?object} The first matching element from the array, or `null` if no element could be found in the range given.
*/
var GetFirst = function (array, property, value, startIndex, endIndex)
{
if (startIndex === undefined) { startIndex = 0; }
if (endIndex === undefined) { endIndex = startIndex >= 0 ? array.length - 1 : 0; }
if (startIndex === -1) { startIndex = array.length - 1; }

var i, child;
if (endIndex === undefined) { endIndex = array.length; }

if (SafeRange(array, Math.min(startIndex, endIndex), Math.max(startIndex, endIndex)))
if (startIndex !== -1)
{
var step = startIndex < endIndex ? 1 : -1;
var count = Math.abs(endIndex - startIndex);
var index = startIndex;

for (i = 0; i < count; i += step)
if (SafeRange(array, startIndex, endIndex))
{
child = array[index];

if (!property ||
(property && value === undefined && child.hasOwnProperty(property)) ||
(property && value !== undefined && child[property] === value))
for (var i = startIndex; i < endIndex; i++)
{
return child;
var child = array[i];

if (!property ||
(property && value === undefined && child.hasOwnProperty(property)) ||
(property && value !== undefined && child[property] === value))
{
return child;
}
}

index += step;
}
}
else
{
if (SafeRange(array, 0, endIndex))
{
for (var i = endIndex; i >= 0; i--)
{
var child = array[i];

if (!property ||
(property && value === undefined && child.hasOwnProperty(property)) ||
(property && value !== undefined && child[property] === value))
{
return child;
}
}
}
}

return null;
};

Expand Down Expand Up @@ -227060,7 +227073,7 @@ module.exports = RotateRight;
* @param {array} array - The array to check.
* @param {number} startIndex - The start index.
* @param {number} endIndex - The end index.
* @param {boolean} [throwError=true] - Throw an error if the range is out of bounds.
* @param {boolean} [throwError=false] - Throw an error if the range is out of bounds.
*
* @return {boolean} True if the range is safe, otherwise false.
*/
Expand All @@ -227071,7 +227084,7 @@ var SafeRange = function (array, startIndex, endIndex, throwError)
if (startIndex < 0 ||
startIndex >= len ||
startIndex >= endIndex ||
endIndex >= len)
endIndex > len)
{
if (throwError)
{
Expand Down
2 changes: 1 addition & 1 deletion dist/phaser-arcade-physics.min.js

Large diffs are not rendered by default.

59 changes: 36 additions & 23 deletions dist/phaser-ie9.js
Original file line number Diff line number Diff line change
Expand Up @@ -15663,7 +15663,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
VERSION: '3.88',
VERSION: '3.88.1',

/**
* Phaser Release Version as displayed in the console.log header URL.
Expand Down Expand Up @@ -238189,7 +238189,7 @@ var NumberTweenBuilder = function (parent, config, defaults)
var easeParams = GetFastValue(config, 'easeParams', defaults.easeParams);
var ease = GetFastValue(config, 'ease', defaults.ease);

var ops = GetFastValueOp('value', to);
var ops = GetValueOp('value', to);

var tween = new Tween(parent, targets);

Expand Down Expand Up @@ -244423,6 +244423,7 @@ var SafeRange = __webpack_require__(82011);
*
* Optionally you can specify a start and end index. For example if the array had 100 elements,
* and you set `startIndex` to 0 and `endIndex` to 50, it would search only the first 50 elements.
*
* You can also specify a negative `startIndex`, such as `-1`, which would start the search at the end of the array
*
* @function Phaser.Utils.Array.GetFirst
Expand All @@ -244431,39 +244432,51 @@ var SafeRange = __webpack_require__(82011);
* @param {array} array - The array to search.
* @param {string} [property] - The property to test on each array element.
* @param {*} [value] - The value to test the property against. Must pass a strict (`===`) comparison check.
* @param {number} [startIndex=0] - An optional start index to search from. You cn also set `startIndex` to -1 to start the search from the end of the array.
* @param {number} [startIndex=0] - An optional start index to search from. You can also set `startIndex` to -1 to start the search from the end of the array.
* @param {number} [endIndex=array.length] - An optional end index to search up to (but not included)
*
* @return {?object} The first matching element from the array, or `null` if no element could be found in the range given.
*/
var GetFirst = function (array, property, value, startIndex, endIndex)
{
if (startIndex === undefined) { startIndex = 0; }
if (endIndex === undefined) { endIndex = startIndex >= 0 ? array.length - 1 : 0; }
if (startIndex === -1) { startIndex = array.length - 1; }

var i, child;
if (endIndex === undefined) { endIndex = array.length; }

if (SafeRange(array, Math.min(startIndex, endIndex), Math.max(startIndex, endIndex)))
if (startIndex !== -1)
{
var step = startIndex < endIndex ? 1 : -1;
var count = Math.abs(endIndex - startIndex);
var index = startIndex;

for (i = 0; i < count; i += step)
if (SafeRange(array, startIndex, endIndex))
{
child = array[index];

if (!property ||
(property && value === undefined && child.hasOwnProperty(property)) ||
(property && value !== undefined && child[property] === value))
for (var i = startIndex; i < endIndex; i++)
{
return child;
var child = array[i];

if (!property ||
(property && value === undefined && child.hasOwnProperty(property)) ||
(property && value !== undefined && child[property] === value))
{
return child;
}
}

index += step;
}
}
else
{
if (SafeRange(array, 0, endIndex))
{
for (var i = endIndex; i >= 0; i--)
{
var child = array[i];

if (!property ||
(property && value === undefined && child.hasOwnProperty(property)) ||
(property && value !== undefined && child[property] === value))
{
return child;
}
}
}
}

return null;
};

Expand Down Expand Up @@ -245600,7 +245613,7 @@ module.exports = RotateRight;
* @param {array} array - The array to check.
* @param {number} startIndex - The start index.
* @param {number} endIndex - The end index.
* @param {boolean} [throwError=true] - Throw an error if the range is out of bounds.
* @param {boolean} [throwError=false] - Throw an error if the range is out of bounds.
*
* @return {boolean} True if the range is safe, otherwise false.
*/
Expand All @@ -245611,7 +245624,7 @@ var SafeRange = function (array, startIndex, endIndex, throwError)
if (startIndex < 0 ||
startIndex >= len ||
startIndex >= endIndex ||
endIndex >= len)
endIndex > len)
{
if (throwError)
{
Expand Down
2 changes: 1 addition & 1 deletion dist/phaser-ie9.min.js

Large diffs are not rendered by default.

59 changes: 36 additions & 23 deletions dist/phaser.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -15651,7 +15651,7 @@ var CONST = {
* @type {string}
* @since 3.0.0
*/
VERSION: '3.88',
VERSION: '3.88.1',

/**
* Phaser Release Version as displayed in the console.log header URL.
Expand Down Expand Up @@ -237639,7 +237639,7 @@ var NumberTweenBuilder = function (parent, config, defaults)
var easeParams = GetFastValue(config, 'easeParams', defaults.easeParams);
var ease = GetFastValue(config, 'ease', defaults.ease);

var ops = GetFastValueOp('value', to);
var ops = GetValueOp('value', to);

var tween = new Tween(parent, targets);

Expand Down Expand Up @@ -243873,6 +243873,7 @@ var SafeRange = __webpack_require__(82011);
*
* Optionally you can specify a start and end index. For example if the array had 100 elements,
* and you set `startIndex` to 0 and `endIndex` to 50, it would search only the first 50 elements.
*
* You can also specify a negative `startIndex`, such as `-1`, which would start the search at the end of the array
*
* @function Phaser.Utils.Array.GetFirst
Expand All @@ -243881,39 +243882,51 @@ var SafeRange = __webpack_require__(82011);
* @param {array} array - The array to search.
* @param {string} [property] - The property to test on each array element.
* @param {*} [value] - The value to test the property against. Must pass a strict (`===`) comparison check.
* @param {number} [startIndex=0] - An optional start index to search from. You cn also set `startIndex` to -1 to start the search from the end of the array.
* @param {number} [startIndex=0] - An optional start index to search from. You can also set `startIndex` to -1 to start the search from the end of the array.
* @param {number} [endIndex=array.length] - An optional end index to search up to (but not included)
*
* @return {?object} The first matching element from the array, or `null` if no element could be found in the range given.
*/
var GetFirst = function (array, property, value, startIndex, endIndex)
{
if (startIndex === undefined) { startIndex = 0; }
if (endIndex === undefined) { endIndex = startIndex >= 0 ? array.length - 1 : 0; }
if (startIndex === -1) { startIndex = array.length - 1; }

var i, child;
if (endIndex === undefined) { endIndex = array.length; }

if (SafeRange(array, Math.min(startIndex, endIndex), Math.max(startIndex, endIndex)))
if (startIndex !== -1)
{
var step = startIndex < endIndex ? 1 : -1;
var count = Math.abs(endIndex - startIndex);
var index = startIndex;

for (i = 0; i < count; i += step)
if (SafeRange(array, startIndex, endIndex))
{
child = array[index];

if (!property ||
(property && value === undefined && child.hasOwnProperty(property)) ||
(property && value !== undefined && child[property] === value))
for (var i = startIndex; i < endIndex; i++)
{
return child;
var child = array[i];

if (!property ||
(property && value === undefined && child.hasOwnProperty(property)) ||
(property && value !== undefined && child[property] === value))
{
return child;
}
}

index += step;
}
}
else
{
if (SafeRange(array, 0, endIndex))
{
for (var i = endIndex; i >= 0; i--)
{
var child = array[i];

if (!property ||
(property && value === undefined && child.hasOwnProperty(property)) ||
(property && value !== undefined && child[property] === value))
{
return child;
}
}
}
}

return null;
};

Expand Down Expand Up @@ -245050,7 +245063,7 @@ module.exports = RotateRight;
* @param {array} array - The array to check.
* @param {number} startIndex - The start index.
* @param {number} endIndex - The end index.
* @param {boolean} [throwError=true] - Throw an error if the range is out of bounds.
* @param {boolean} [throwError=false] - Throw an error if the range is out of bounds.
*
* @return {boolean} True if the range is safe, otherwise false.
*/
Expand All @@ -245061,7 +245074,7 @@ var SafeRange = function (array, startIndex, endIndex, throwError)
if (startIndex < 0 ||
startIndex >= len ||
startIndex >= endIndex ||
endIndex >= len)
endIndex > len)
{
if (throwError)
{
Expand Down
2 changes: 1 addition & 1 deletion dist/phaser.esm.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit e7d4798

Please sign in to comment.