Whats more efficient? Rotating images(in JLabel)
Im making a game and I need my character to rotate.
Would it be better to rotate it by making a whole other image, in the direction desired? or to rotate the content in code?
So theres 4 directions(up,down,left,right)
Have 4 images, each one in a certain direction. When i want to rotate, i
sub one image for another.
Have 1 image. When I want to rotate it, I actually rotate it in code.
P.S. I can do option 1 with ease, but i feel like its elementary and inefficient. But iv spent some time trying to use AffineTransform to try to rotate it with no luck