diff --git a/src/tilemaps/Tilemap.js b/src/tilemaps/Tilemap.js index c7db5bb57f..83921085f0 100644 --- a/src/tilemaps/Tilemap.js +++ b/src/tilemaps/Tilemap.js @@ -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. @@ -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. @@ -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. diff --git a/src/tilemaps/TilemapLayer.js b/src/tilemaps/TilemapLayer.js index 4105f2928b..27a645aeb8 100644 --- a/src/tilemaps/TilemapLayer.js +++ b/src/tilemaps/TilemapLayer.js @@ -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) { diff --git a/src/tilemaps/TilemapLayerBase.js b/src/tilemaps/TilemapLayerBase.js index 02bf646547..f565deb4fc 100644 --- a/src/tilemaps/TilemapLayerBase.js +++ b/src/tilemaps/TilemapLayerBase.js @@ -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. * @@ -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. @@ -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. diff --git a/src/tilemaps/components/FindByIndex.js b/src/tilemaps/components/FindByIndex.js index 9efdbe565d..6720ac001a 100644 --- a/src/tilemaps/components/FindByIndex.js +++ b/src/tilemaps/components/FindByIndex.js @@ -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.