pygame-ce icon indicating copy to clipboard operation
pygame-ce copied to clipboard

Suggestions for Mask methods to enhance usability of mask.overlap()

Open AnRibo opened this issue 2 months ago • 4 comments
trafficstars

It is easy to obtain a point of overlap between sprites/masks, but obtaining e.g. the right-most point of overlap specifically can be quite challanging. By default with pygame, as I understand it, I generally get the top-left-most point as it searches columns top->bottom starting with the left-most column. *edit: I took a peek at the code which seem to have various algotithms for getting a fast result depending on the situation, thus it seems best to make an alternate method to do what I want. I will try to make it myself + a working example of what it does, let me know it there is any interrest to add it to the project.

AnRibo avatar Sep 14 '25 16:09 AnRibo