0

I am currently creating a tiny platformer with pygame and transparent images.
When it came to collision, I was stumped.
I soon came up with looping over all the pixels in my players hitbox until it found an opaque pixel in the image.
This worked really well at first, but on steeper ground and slower moving, this is really detrimental to FPS.
What is a decent way to do transparent image to hitbox collisions that is not too slow?

Connor Club
  • 64
  • 1
  • 7

0 Answers0