What is an easy way to have sprites collide and react to the collision? E.g. if I'm writing a game in XNA or with Canvas 2D and need to write the code myself very simply.
The XNA collision series is very thorough for 2D collisions, covering collisions between bounding boxes, heightmaps, and per pixel collsion. The sample is for XNA but the concepts can be transferred elsewhere.