Email or username:

Password:

Forgot your password?
Top-level
Devil Lu Linvega

@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.

2 comments
cancel

@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.

Go Up