@neauoire Bitmasks. The crowd goes wild.
3 comments
@neauoire Nah that's fine. If it gets more fancy, you might consider it, though. Since it lets you adjust the graphics and hit zones really precisely without having to write custom logic each time. And the size of a small bitmask is often smaller than the bytes of code needed to do a custom hit test. |
@cancel wait, should I have used bitmasks for this? I'm just doing if x and y are more than half the height/width of the selection, then pick the other.