Creating an Asteroids Flash Game Using the Display List Part 4: Detecting Collisions and Creating Particle Explosions
In the last section, we created an asteroids class to easily create a variety of asteroids, as well as move them around on screen. In this section, we’ll create a way to detect collisions between the asteroids and the ship or bullets, and create particle explosions when the collisions happen, as well as break apart …