Skip to content

Commit 377d27c

Browse files
committed
Added Tile.right and Tile.bottom properties. Fix phaserjs#5400
1 parent 234c070 commit 377d27c

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/tilemaps/Tile.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,24 @@ var Tile = new Class({
104104
*/
105105
this.height = height;
106106

107+
/**
108+
* The right of the tile in pixels.
109+
*
110+
* @name Phaser.Tilemaps.Tile#right
111+
* @type {integer}
112+
* @since 3.50.0
113+
*/
114+
this.right = x + width;
115+
116+
/**
117+
* The bottom of the tile in pixels.
118+
*
119+
* @name Phaser.Tilemaps.Tile#bottom
120+
* @type {integer}
121+
* @since 3.50.0
122+
*/
123+
this.bottom = y + height;
124+
107125
/**
108126
* The maps base width of a tile in pixels. Tiled maps support multiple tileset sizes
109127
* within one map, but they are still placed at intervals of the base tile size.

0 commit comments

Comments
 (0)