mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 03:23:42 +00:00
changed a few things, preparing tiles
This commit is contained in:
parent
a7d4816564
commit
66e99bccc6
1 changed files with 2 additions and 2 deletions
|
@ -88,8 +88,8 @@ var WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer)
|
|||
? Math.floor((worldY / (tileHeight / 2)))
|
||||
: (worldY / (tileHeight / 2));
|
||||
point.x = snapToFloor
|
||||
? Math.floor((worldX / tileWidth) - (point.y % 2))
|
||||
: (worldX / tileWidth) - (point.y % 2);
|
||||
? Math.floor((worldX / tileWidth) + (point.y % 2))
|
||||
: (worldX / tileWidth) + (point.y % 2);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue