Skip to content

Commit 09f5742

Browse files
committed
Tilemap.shuffle was calling the deprecated Phaser.Utils.shuffle, which has now moved to Phaser.ArrayUtils.shuffle.
1 parent bcedd92 commit 09f5742

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ If you are an exceptional JavaScript developer and would like to join the Phaser
307307
* Tilemap.createFromObjects has been strengthened so that will only create Sprites for matching gids/ids/names. It also only sets the Sprite width and height values if they are present in the Tiled data (thanks @pparke #2012)
308308
* TilingSprite._renderCanvas wasn't correctly allowing for pixel rounding (thanks @ximop #2022)
309309
* Cache.addSpriteSheet didn't include default values for the `frameMax`, `margin` and `spacing` arguments (thanks @vladkens #2017 #2018)
310+
* Tilemap.shuffle was calling the deprecated Phaser.Utils.shuffle, which has now moved to Phaser.ArrayUtils.shuffle.
310311

311312
For changes in previous releases please see the extensive [Version History](https://github.com/photonstorm/phaser/blob/master/CHANGELOG.md).
312313

src/tilemap/Tilemap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ Phaser.Tilemap.prototype = {
17961796
}
17971797
}
17981798

1799-
Phaser.Utils.shuffle(indexes);
1799+
Phaser.ArrayUtils.shuffle(indexes);
18001800

18011801
for (var i = 1; i < this._results.length; i++)
18021802
{

0 commit comments

Comments
 (0)