Hello everybody,
which is the fastest way to implement pixel-perfect collision detection. ImagesCollide seems to be rather slow, but then again I doubt that I will be able to code some function that is faster and has the same functionality.
Pretesting with ImagesOverlap reduces the amount that I have to use ImagesCollide, but it's not always applicable.
To give a little example: You have got a little spaceship that flies through the screen, and the background is a painted level(one picture file). If the ship hits anything but the black part of the level picture you want it to collide.
Using ImagesCollide every time the ship moves works,but seems to be overkill. But how would you guys do this?
which is the fastest way to implement pixel-perfect collision detection. ImagesCollide seems to be rather slow, but then again I doubt that I will be able to code some function that is faster and has the same functionality.
Pretesting with ImagesOverlap reduces the amount that I have to use ImagesCollide, but it's not always applicable.
To give a little example: You have got a little spaceship that flies through the screen, and the background is a painted level(one picture file). If the ship hits anything but the black part of the level picture you want it to collide.
Using ImagesCollide every time the ship moves works,but seems to be overkill. But how would you guys do this?