Skip to content

Commit

Permalink
Fix docs description for all argument
Browse files Browse the repository at this point in the history
  • Loading branch information
samme committed May 29, 2020
1 parent 8db244a commit 55ed869
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tilemap/Tilemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1417,8 +1417,9 @@ Phaser.Tilemap.prototype = {
},

/**
* Searches the entire map layer for the first tile matching the given index, then returns that Phaser.Tile object.
* If no match is found it returns null.
* Searches the entire map layer for the first tile or all tiles matching the given index.
* When `all` is false (the default), it returns a Phaser.Tile object or null.
* When `all` is true, it returns an array Phaser.Tile objects, or none (an empty array).
* The search starts from the top-left tile and continues horizontally until it hits the end of the row, then it drops down to the next column.
* If the reverse boolean is true, it scans starting from the bottom-right corner traveling up to the top-left.
*
Expand Down

0 comments on commit 55ed869

Please sign in to comment.