shuffle(x, y, width, height, layer)
Shuffles a set of tiles in a given area. It will only randomise the tiles in that area, so if they're all the same nothing will appear to have changed!
Parameters
Name | Type | Argument | Description |
---|---|---|---|
x | number | X position of the top left of the area to operate one, given in tiles, not pixels. | |
y | number | Y position of the top left of the area to operate one, given in tiles, not pixels. | |
width | number | The width in tiles of the area to operate on. | |
height | number | The height in tiles of the area to operate on. | |
layer | number | string | Phaser.TilemapLayer | <optional> | The layer to operate on. |
- Source code: tilemap/Tilemap.js (Line 1803)
Please login to continue.