Started to implement Javelin.
Gosh, it is a hard work to make the rotated versions of the “spear” which look even semi-good! Maybe, I should use anti-aliasing to make it look better, but I have never done that by hand. It is especially challenging with a 16-color palette so maybe it is good enough as such. I also could have used Gimp rotate function for help, but I thought it would be “funnier” to do it by myself. It wasn’t, but maybe I Iearned something on the way.
If (or when) the ROM runs out I need to truncate the empty space away from the bitmaps, but right now it is easier when they are of the same size.
For selecting the correct rotated image for the flying spear I would need an arctan()-function, but Pokitto MicroPython do not offer trigonometric functions. I have used sine and cosine tables before in MP, but looks like arctan() is a quite different thing and not easy to do.
Anyone know a simple implementation of arctan() for fixed point numbers?