Original Post
I want to implement bitmask collision detection. Here''s what I have gleaned so far about the process. First when a sprite is loaded a 2d array of 1s and 0s is created by looping through the pixel data looking at every pixel value, where a nonzero value will be represented as a 1. When a collision is tested you find the bounding box overlaps and do a bitmask check at that region. While looping if there ever is a point where both masks have a value of one you have a collision. Now that you know there''s been a collision how should it react? For instance how will you know to move a sprite horizontal or vertical to fix the collision?