What You Will Learn
In this lesson you will
This lesson should take you about 2 hours to complete.
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
Collision detection is simply a means of knowing if one object is touching, or colliding with, another. Though primitive, the popular 1972 game Pong was one of the earliest examples of collision detection in a game. Today, much more advanced gamesand much more advanced collision algorithmsare being created. In fact, there are a good number of books dedicated strictly to the subject of collision detection. Do a search at Amazon; you'll be surprised. For our game, however, we need look no further than Director's built-in collision handling, although other methods will be discussed.