Skip to content

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

@AnRibo

Description

@AnRibo

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions