From 398bdf43146eb5d85cc06f2ab93555169fd40308 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Fri, 2 Oct 2020 10:30:08 +0100 Subject: [PATCH] `Tilemap.hexSideLength` is a new property that holds the length of the hexagon sides, if using Hexagonal Tilemaps. --- src/tilemaps/Tilemap.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tilemaps/Tilemap.js b/src/tilemaps/Tilemap.js index 2b9bb74c1..3f9a1fe24 100644 --- a/src/tilemaps/Tilemap.js +++ b/src/tilemaps/Tilemap.js @@ -253,18 +253,19 @@ var Tilemap = new Class({ this.currentLayerIndex = 0; /** - * Optional : Only for hexagonal tilemaps. * The length of the horizontal sides of the hexagon. - * @name Phaser.Tilemaps.MapData#tiles + * Only used for hexagonal Tilemaps. + * + * @name Phaser.Tilemaps.Tilemap#hexSideLength * @type {integer} - * @since 3.0.0 + * @since 3.50.0 */ this.hexSideLength = mapData.hexSideLength; /** * Components used for conversions between real world coordinates and tile coordinates, * initialized here to prevent switching between them at runtime depending on map orientation. - * refer to the components themselves for documentation. + * refer to the components themselves for documentation. * @since 3.2.2 */ this.WorldToTileXY = TilemapComponents.WorldToTileXY(this.orientation); @@ -2414,7 +2415,7 @@ var Tilemap = new Class({ * * @return {?Phaser.Math.Vector2} Returns a point, or null if the layer given was invalid. */ - + tileToWorldXY: function (tileX, tileY, point, camera, layer) { layer = this.getLayer(layer);