HTML and CSS Reference
In-Depth Information
How We Will Test Collisions
We will employ a simple setTimeout loop to move these objects closer and closer together.
As the bounding boxes of each collide, our code will then drop into an algorithm that will test
the alpha value on each pixel at the overlap between the objects. If this alpha value is not 0,
we know that the objects have collided.
Search WWH ::

Custom Search