Chapter 13. Detecting Collisions
What You Will LearnIn this lesson you willLearn about collision detection and how to implement itUse the sprite.intersects command to test for collisionsCreate and use a film loop to make ships explodeUse the getPixel method to test for collisionsAdd the final bonus level to the game
Approximate TimeThis lesson should take you about 2 hours to complete.Lesson FilesMedia Files:blowUp1.pngblowUp2.pngblowUp3.pngboom.aiffire.aifgameOver.pngtunnel.pngStarting Files:snake!.dir2d_game_start.dirCompleted Files:2d_game.dirThis is the third lesson in the third project, an old-style 2D Space Shooter. In this lesson you'll really bring the game to life by implementing collision detection for your bullets and ship, as well as adding a fourth, bonus level where the ship must be navigated through a narrow passage.
Navigating through the passage