I just finished the first version of a pixel perfect collision detection for EaselJS Bitmaps and BitmapAnimations.
Get it from Github: https://github.com/olsn/Collision-Detection-for-EaselJS
Here is an example (play around with the alpha threshold and toggle the detection mode):
1 2 3 4 5 6 7 8 |
// Rect Collision var intersection = ndgmr.checkRectCollision(bitmap1,bitmap2); // intersection is null if no collision, otherwise a {x,y,width,height}-Object is returned // Pixel Perfect Collision var collision = ndgmr.checkPixelCollision(bitmap1,bitmap2,alphaThreshold); // true or false // alphaThreshold default is 0, set to higher value to ignore collisions with semi transparent pixels |