Skip to content
New issue

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

Tiled Renderer ignores tileset offset #728

Open
puthre opened this issue Aug 10, 2022 · 0 comments
Open

Tiled Renderer ignores tileset offset #728

puthre opened this issue Aug 10, 2022 · 0 comments

Comments

@puthre
Copy link
Contributor

puthre commented Aug 10, 2022

In TiledRendering.cs:120 should be changed to something like
RenderTile(tile, batcher, position - new Vector2(tile.Tileset.TileOffset.X, tile.Tileset.TileOffset.Y),
scale, tileWidth, tileHeight,
color, layerDepth, layer.Map.Orientation,
layer.Map.Width, layer.Map.Height);

TileOffset is correctly loaded but it is never referenced in the code.

Same in the other rendering functions. Not sure if this is the best solution but this fixed it for me. I would provide a pull request but I'm so new to Nez that I can barely find my way around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant