We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I allowed every tile transformation in a map
transform.zip
But it comes broken from the renderer:
After I made some changes to RotateTileImage, it looks as expected:
RotateTileImage
Here are the diff of the changes that I've made (I can create a PR if it's a valid fix):
diff --git a/render/orthogonal.go b/render/orthogonal.go index 9e2d1d9..cfe762d 100644 --- a/render/orthogonal.go +++ b/render/orthogonal.go @@ -47,15 +47,15 @@ func (e *OrthogonalRendererEngine) GetFinalImageSize() image.Rectangle { // RotateTileImage rotates provided tile layer. func (e *OrthogonalRendererEngine) RotateTileImage(tile *tiled.LayerTile, img image.Image) image.Image { timg := img + if tile.DiagonalFlip { + timg = imaging.FlipH(imaging.Rotate270(timg)) + } if tile.HorizontalFlip { timg = imaging.FlipH(timg) } if tile.VerticalFlip { timg = imaging.FlipV(timg) } - if tile.DiagonalFlip { - timg = imaging.FlipH(imaging.Rotate90(timg)) - } return timg }
The text was updated successfully, but these errors were encountered:
Looks like a valid fix, please submit PR
Sorry, something went wrong.
No branches or pull requests
I allowed every tile transformation in a map
transform.zip
But it comes broken from the renderer:

After I made some changes to

RotateTileImage
, it looks as expected:Here are the diff of the changes that I've made (I can create a PR if it's a valid fix):
The text was updated successfully, but these errors were encountered: