I'm currently developing a game using J2ME SDK 3.0. using MIDP2.1. I ran into the following problem:

I want to be able to rotate a sprite in about 8 to 12 positions, but the Sprite-class only offers 4 rotation positions.

So I did some research but couldn't really find a way to solve this. One way is to derive from the Sprite-class and implement the rotation algorithm myself but I can imagine there already is a 3rd party solution.

Can anybody help? I'm not asking for the complete algorithm, just curious about the solutions you guys come up with.

Thanks in advance