mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
woops
This commit is contained in:
parent
83bbf08902
commit
ddbcf85194
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ var TileToWorldXY = function (tileX, tileY, point, camera, layer, orientation)
|
||||||
point.x = TileToWorldX(tileX, camera, layer, orientation);
|
point.x = TileToWorldX(tileX, camera, layer, orientation);
|
||||||
point.y = TileToWorldY(tileY, camera, layer, orientation);
|
point.y = TileToWorldY(tileY, camera, layer, orientation);
|
||||||
} else if (orientation === "isometric") {
|
} else if (orientation === "isometric") {
|
||||||
point.x = (WorldX - WorldY) * (tileWidth/2);
|
point.x = (tileX - tileY) * (tileWidth/2);
|
||||||
point.y = (WorldX + WorldY) * (tileHeight/2);
|
point.y = (tileX + tileY) * (tileHeight/2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue