I’ve been working on a game using the Gamebuino library and everything has gone well so far. I have now started the collision detection and I’ve come across a problem.
The API has a function:
This is a pixel for pixel check to see if bmp1 and bmp2 have collided. However, I have been making use of the ability for drawBitmap() to rotate or flip the bitmaps when they are drawn. This has made animation very easy in some cases, as well as saving memory.
However, this collision check has no way of knowing that I have flipped or rotated the bitmaps and will compare the untransformed bitmaps.
Am I going to have to stop using rotate and flip in favor of having the actual bitmaps or is there a way around this I’m not seeing?