Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/tilemaps/Tilemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ var Tilemap = new Class({
* @method Phaser.Tilemaps.Tilemap#findByIndex
* @since 3.0.0
*
* @param {number} index - The tile index value to search for.
* @param {number} findIndex - The tile index value to search for.
* @param {number} [skip=0] - The number of times to skip a matching tile before returning.
* @param {boolean} [reverse=false] - If true it will scan the layer in reverse, starting at the bottom-right. Otherwise it scans from the top-left.
* @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.
Expand Down Expand Up @@ -1697,7 +1697,7 @@ var Tilemap = new Class({
* @method Phaser.Tilemaps.Tilemap#putTilesAt
* @since 3.0.0
*
* @param {(number[]|number[][]|Phaser.Tilemaps.Tile[]|Phaser.Tilemaps.Tile[][])} tile - A row (array) or grid (2D array) of Tiles or tile indexes to place.
* @param {(number[]|number[][]|Phaser.Tilemaps.Tile[]|Phaser.Tilemaps.Tile[][])} tilesArray - A row (array) or grid (2D array) of Tiles or tile indexes to place.
* @param {number} tileX - The x coordinate, in tiles, not pixels.
* @param {number} tileY - The y coordinate, in tiles, not pixels.
* @param {boolean} [recalculateFaces] - `true` if the faces data should be recalculated.
Expand Down Expand Up @@ -2473,8 +2473,8 @@ var Tilemap = new Class({
* @method Phaser.Tilemaps.Tilemap#swapByIndex
* @since 3.0.0
*
* @param {number} tileA - First tile index.
* @param {number} tileB - Second tile index.
* @param {number} indexA - First tile index.
* @param {number} indexB - Second tile index.
* @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.
* @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.
* @param {number} [width] - How many tiles wide from the `tileX` index the area will be.
Expand Down
2 changes: 1 addition & 1 deletion src/tilemaps/TilemapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ var TilemapLayer = new Class({
* @private
* @since 3.50.0
*
* @param {(string|string[]|Phaser.Tilemaps.Tileset|Phaser.Tilemaps.Tileset[])} tileset - The tileset, or an array of tilesets, used to render this layer. Can be a string or a Tileset object.
* @param {(string|string[]|Phaser.Tilemaps.Tileset|Phaser.Tilemaps.Tileset[])} tilesets - The tileset, or an array of tilesets, used to render this layer. Can be a string or a Tileset object.
*/
setTilesets: function (tilesets)
{
Expand Down
8 changes: 4 additions & 4 deletions src/tilemaps/TilemapLayerBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ var TilemapLayerBase = new Class({
* @method Phaser.Tilemaps.TilemapLayerBase#findByIndex
* @since 3.50.0
*
* @param {number} index - The tile index value to search for.
* @param {number} findIndex - The tile index value to search for.
* @param {number} [skip=0] - The number of times to skip a matching tile before returning.
* @param {boolean} [reverse=false] - If true it will scan the layer in reverse, starting at the bottom-right. Otherwise it scans from the top-left.
*
Expand Down Expand Up @@ -664,7 +664,7 @@ var TilemapLayerBase = new Class({
* @method Phaser.Tilemaps.TilemapLayerBase#putTilesAt
* @since 3.50.0
*
* @param {(number[]|number[][]|Phaser.Tilemaps.Tile[]|Phaser.Tilemaps.Tile[][])} tile - A row (array) or grid (2D array) of Tiles or tile indexes to place.
* @param {(number[]|number[][]|Phaser.Tilemaps.Tile[]|Phaser.Tilemaps.Tile[][])} tilesArray - A row (array) or grid (2D array) of Tiles or tile indexes to place.
* @param {number} tileX - The x coordinate, in tiles, not pixels.
* @param {number} tileY - The y coordinate, in tiles, not pixels.
* @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.
Expand Down Expand Up @@ -976,8 +976,8 @@ var TilemapLayerBase = new Class({
* @method Phaser.Tilemaps.TilemapLayerBase#swapByIndex
* @since 3.50.0
*
* @param {number} tileA - First tile index.
* @param {number} tileB - Second tile index.
* @param {number} indexA - First tile index.
* @param {number} indexB - Second tile index.
* @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.
* @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.
* @param {number} [width] - How many tiles wide from the `tileX` index the area will be.
Expand Down
2 changes: 1 addition & 1 deletion src/tilemaps/components/FindByIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @function Phaser.Tilemaps.Components.FindByIndex
* @since 3.0.0
*
* @param {number} index - The tile index value to search for.
* @param {number} findIndex - The tile index value to search for.
* @param {number} skip - The number of times to skip a matching tile before returning.
* @param {boolean} reverse - If true it will scan the layer in reverse, starting at the bottom-right. Otherwise it scans from the top-left.
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
Expand Down