@@ -23,7 +23,7 @@ var Utils = require('../../renderer/webgl/Utils');
2323 *
2424 * Use a Static Tilemap Layer instead of a Dynamic Tilemap Layer when you don't need tile manipulation features.
2525 *
26- * @class StaticTilemapLayer
26+ * @class StaticTilemapLayers
2727 * @extends Phaser.GameObjects.GameObject
2828 * @memberof Phaser.Tilemaps
2929 * @constructor
@@ -1124,7 +1124,8 @@ var StaticTilemapLayer = new Class({
11241124 */
11251125 hasTileAtWorldXY : function ( worldX , worldY , camera )
11261126 {
1127- return TilemapComponents . HasTileAtWorldXY ( worldX , worldY , camera , this . layer ) ;
1127+
1128+ return TilemapComponents . HasTileAtWorldXY ( worldX , worldY , camera , this . tilemap . orientation ) ;
11281129 } ,
11291130
11301131 /**
@@ -1320,13 +1321,14 @@ var StaticTilemapLayer = new Class({
13201321 } ,
13211322
13221323 /**
1323- * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the
1324+ * Converts from tile X and Y coordinates (tile units) to world X coordinates (pixels), factoring in the
13241325 * layers position, scale and scroll.
13251326 *
13261327 * @method Phaser.Tilemaps.StaticTilemapLayer#tileToWorldX
13271328 * @since 3.0.0
13281329 *
13291330 * @param {integer } tileX - The X coordinate, in tile coordinates.
1331+ * @param {integer } tileY - The Y coordinate, in tile coordinates.
13301332 * @param {Phaser.Cameras.Scene2D.Camera } [camera=main camera] - The Camera to use when calculating the world values from the tile index.
13311333 *
13321334 * @return {number }
@@ -1337,13 +1339,14 @@ var StaticTilemapLayer = new Class({
13371339 } ,
13381340
13391341 /**
1340- * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the
1342+ * Converts from tile X and Y coordinates (tile units) to world Y coordinates (pixels), factoring in the
13411343 * layers position, scale and scroll.
13421344 *
13431345 * @method Phaser.Tilemaps.StaticTilemapLayer#tileToWorldY
13441346 * @since 3.0.0
13451347 *
13461348 * @param {integer } tileY - The Y coordinate, in tile coordinates.
1349+ * @param {integer } tileY - The Y coordinate, in tile coordinates.
13471350 * @param {Phaser.Cameras.Scene2D.Camera } [camera=main camera] - The Camera to use when calculating the world values from the tile index.
13481351 *
13491352 * @return {number }
@@ -1389,7 +1392,7 @@ var StaticTilemapLayer = new Class({
13891392 */
13901393 worldToTileX : function ( worldX , snapToFloor , camera )
13911394 {
1392- return TilemapComponents . WorldToTileX ( worldX , snapToFloor , camera , this . layer ) ;
1395+ return TilemapComponents . WorldToTileX ( worldX , snapToFloor , camera , this . layer , this . tilemap . orientation ) ;
13931396 } ,
13941397
13951398 /**
@@ -1408,7 +1411,7 @@ var StaticTilemapLayer = new Class({
14081411 */
14091412 worldToTileY : function ( worldY , snapToFloor , camera )
14101413 {
1411- return TilemapComponents . WorldToTileY ( worldY , snapToFloor , camera , this . layer ) ;
1414+ return TilemapComponents . WorldToTileY ( worldY , snapToFloor , camera , this . layer , this . tilemap . orientation ) ;
14121415 } ,
14131416
14141417 /**
@@ -1430,7 +1433,7 @@ var StaticTilemapLayer = new Class({
14301433 */
14311434 worldToTileXY : function ( worldX , worldY , snapToFloor , point , camera )
14321435 {
1433- return TilemapComponents . WorldToTileXY ( worldX , worldY , snapToFloor , point , camera , this . layer ) ;
1436+ return TilemapComponents . WorldToTileXY ( worldX , worldY , snapToFloor , point , camera , this . layer , this . tilemap . orientation ) ;
14341437 } ,
14351438
14361439 /**
0 commit comments