Simple question:
I have my isometric map that i initialize in this mode:
for (int i = 0; i < Xmapsize; i++)
for (int j = Ymapsize - 1; j >= 0; j--)
{
tile_map[i][j].setTexture(texture);
float x = (j * tile_width / 2) + (i * tile_width / 2);
float y = (i * tile_height / 2) - (j * tile_height / 2);
tile_map[i][j].setPosition(x,y);
}
and i draw it in the simplest mode possible:
for (int i = 0; i < Xmapsize; i++)
for (int j = Ymapsize - 1; j >= 0; j--)
window.draw(tile_map[i][j]);
Any1 know why in my map there are some orrible black lines ?
This is the image:
Ty in advance!
some stuff: sfml 2, visual studio 10 , the error persist in debug n release mode