Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

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.

http://creators.xna.com/en-US/tutorial/collision2drectangle

share|improve this answer
1  
The above link still works, but since XNA Creator's Club is now App Hub, here's the direct link so you don't have to wait for it to redirect you: create.msdn.com/en-US/education/catalog/tutorial/… –  DMan Nov 28 '10 at 17:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.