Vote count:
0
I am creating an offline tiled map in java. I am painting tiles that fit only in the given window size. I also placed a marker on top of my map at some position i.e say x,y.
Now i am trying to rotate the tiles and want to retain the position of the marker too.
I used the below code
void PaintComponent(Graphics g)
{
Graphics2D g2= =(Graphics2D) g;
g2.rotate(45);
}
But it is loading tiles randomly with out any alignment. Can anyone please help me on how to rotate tiles.
asked 27 secs ago
Aucun commentaire:
Enregistrer un commentaire