Skip to content

Commit 398bdf4

Browse files
committed
Tilemap.hexSideLength is a new property that holds the length of the hexagon sides, if using Hexagonal Tilemaps.
1 parent 2443748 commit 398bdf4

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/tilemaps/Tilemap.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,18 +253,19 @@ var Tilemap = new Class({
253253
this.currentLayerIndex = 0;
254254

255255
/**
256-
* Optional : Only for hexagonal tilemaps.
257256
* The length of the horizontal sides of the hexagon.
258-
* @name Phaser.Tilemaps.MapData#tiles
257+
* Only used for hexagonal Tilemaps.
258+
*
259+
* @name Phaser.Tilemaps.Tilemap#hexSideLength
259260
* @type {integer}
260-
* @since 3.0.0
261+
* @since 3.50.0
261262
*/
262263
this.hexSideLength = mapData.hexSideLength;
263264

264265
/**
265266
* Components used for conversions between real world coordinates and tile coordinates,
266267
* initialized here to prevent switching between them at runtime depending on map orientation.
267-
* refer to the components themselves for documentation.
268+
* refer to the components themselves for documentation.
268269
* @since 3.2.2
269270
*/
270271
this.WorldToTileXY = TilemapComponents.WorldToTileXY(this.orientation);
@@ -2414,7 +2415,7 @@ var Tilemap = new Class({
24142415
*
24152416
* @return {?Phaser.Math.Vector2} Returns a point, or null if the layer given was invalid.
24162417
*/
2417-
2418+
24182419
tileToWorldXY: function (tileX, tileY, point, camera, layer)
24192420
{
24202421
layer = this.getLayer(layer);

0 commit comments

Comments
 (0)