Fixed issue with scaled tilemaps

This commit is contained in:
Felipe Alfonso 2018-02-07 16:30:18 -03:00
parent 10193c181a
commit feabcdadb9

View file

@ -1151,13 +1151,13 @@ var TextureTintPipeline = new Class({
tilemapLayer,
texture,
texture.width, texture.height,
tile.width / 2 + x + tile.pixelX, tile.height / 2 + y + tile.pixelY,
tile.width, tile.height,
sx, sy,
(tile.width / 2) + x + tile.pixelX * sx, (tile.height / 2) + y + tile.pixelY * sy,
tile.width * sx, tile.height * sy,
1, 1,
tile.rotation,
tile.flipX, tile.flipY,
scrollFactorX, scrollFactorY,
tile.width / 2, tile.height / 2,
(tile.width / 2), (tile.height / 2),
frameX, frameY, frameWidth, frameHeight,
tint, tint, tint, tint,
0, 0,