prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 355 forks source link

Tiled Renderer ignores tileset offset #728

Open puthre opened 1 year ago

puthre commented 1 year ago

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.