mirror of
https://github.com/photonstorm/phaser
synced 2024-11-21 20:23:19 +00:00
Fixed jsdocs
This commit is contained in:
parent
49456a08b8
commit
f519c582c7
2 changed files with 2 additions and 4 deletions
|
@ -14,15 +14,13 @@ var IsInLayerBounds = require('./IsInLayerBounds');
|
|||
*
|
||||
* @param {number} tileX - X position to get the tile from (given in tile units, not pixels).
|
||||
* @param {number} tileY - Y position to get the tile from (given in tile units, not pixels).
|
||||
* @param {boolean} [nonNull=false] - For empty tiles, return a Tile object with an index of -1 instead of null.
|
||||
* @param {boolean} nonNull - For empty tiles, return a Tile object with an index of -1 instead of null.
|
||||
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
|
||||
*
|
||||
* @return {Phaser.Tilemaps.Tile} The tile at the given coordinates or null if no tile was found or the coordinates were invalid.
|
||||
*/
|
||||
var GetTileAt = function (tileX, tileY, nonNull, layer)
|
||||
{
|
||||
if (nonNull === undefined) { nonNull = false; }
|
||||
|
||||
if (IsInLayerBounds(tileX, tileY, layer))
|
||||
{
|
||||
var tile = layer.data[tileY][tileX] || null;
|
||||
|
|
|
@ -17,7 +17,7 @@ var point = new Vector2();
|
|||
*
|
||||
* @param {number} worldX - X position to get the tile from (given in pixels)
|
||||
* @param {number} worldY - Y position to get the tile from (given in pixels)
|
||||
* @param {boolean} [nonNull=false] - For empty tiles, return a Tile object with an index of -1 instead of null.
|
||||
* @param {boolean} nonNull - For empty tiles, return a Tile object with an index of -1 instead of null.
|
||||
* @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.
|
||||
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue