mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 11:33:28 +00:00
fixed independent ttw calls in physics/arcade/World.js
This commit is contained in:
parent
91967e37ca
commit
aae73c3cb8
1 changed files with 4 additions and 2 deletions
|
@ -2210,8 +2210,10 @@ var World = new Class({
|
||||||
|
|
||||||
tilemapLayer = tile.tilemapLayer;
|
tilemapLayer = tile.tilemapLayer;
|
||||||
|
|
||||||
tileWorldRect.left = tilemapLayer.tileToWorldX(tile.x);
|
var point = tilemapLayer.tileToWorldXY(tile.x,tile.y);
|
||||||
tileWorldRect.top = tilemapLayer.tileToWorldY(tile.y);
|
|
||||||
|
tileWorldRect.left = point.x;
|
||||||
|
tileWorldRect.top = point.y;
|
||||||
|
|
||||||
// If the map's base tile size differs from the layer's tile size, only the top of the rect
|
// If the map's base tile size differs from the layer's tile size, only the top of the rect
|
||||||
// needs to be adjusted since its origin is (0, 1).
|
// needs to be adjusted since its origin is (0, 1).
|
||||||
|
|
Loading…
Reference in a new issue