private void RenderTile(Layer layer, Tile tile, int screenX, int screenY) { if (tile.TileId >= 0) { TextureRegion tex = layer.TileSet.GetTile(tile.TileId); if (tex != null) { batch.Draw(tex, screenX, screenY); } } }