HTML5 2D game development, Collision detection and sprite animations
Detecting and reacting to collisions; making sprites explode
From the developerWorks archives
Date archived: April 18, 2019 | First published: April 16, 2013
In this series, HTML5 maven David Geary shows you how to implement an HTML5 2D video game one step at a time. In this installment, learn how Snail Bait implements collision detection and explosions.
This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.