English subtitles

← Pixel Perfect Collision - HTML5 Game Development

Get Embed Code
4 Languages

Showing Revision 6 created 05/25/2016 by Udacity Robot.

  1. First, let's talk about how we make things collide. Now, our world consists of
  2. beautiful pixels and so, let's determine whether two images collide based on
  3. their pixel data. So, let's say you have these two objects in your game world.
  4. The first is 72 by 72 pixels and the second is 50 by 50 pixels, and you want to
  5. figure out if they have collided with each other. How many pixel comparisons do
  6. you need to calculate to determine whether these two objects have collided with
  7. each other? Enter your answer in this text box.