mirror of
https://github.com/photonstorm/phaser
synced 2024-12-03 09:59:42 +00:00
Tilemap.hexSideLength
is a new property that holds the length of the hexagon sides, if using Hexagonal Tilemaps.
This commit is contained in:
parent
24437485af
commit
398bdf4314
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue