Chapter 13. Detecting CollisionsWhat You Will Learn In this lesson you will Learn about collision detection and how to implement it Use the sprite.intersects command to test for collisions Create and use a film loop to make ships explode Use the getPixel method to test for collisions Add the final bonus level to the game
Approximate Time This lesson should take you about 2 hours to complete. Lesson Files Media Files: blowUp1.png blowUp2.png blowUp3.png boom.aif fire.aif gameOver.png tunnel.png Starting Files: snake!.dir 2d_game_start.dir Completed Files: 2d_game.dir This 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 |