Tilemap.hexSideLength is a new property that holds the length of the hexagon sides, if using Hexagonal Tilemaps.

This commit is contained in:
Richard Davey 2020-10-02 10:30:08 +01:00
parent 24437485af
commit 398bdf4314

View file

@ -253,11 +253,12 @@ 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;