Chapter 21. Completing the Scrolling Shooter Game
In this chapter we will complete the Scrolling Shooter game. We will achieve this by coding the remaining component classes which represent the three different types of alien and their lasers that they can shoot at the player. Once we have completed the component classes we will make minor modifications to the GameEngine
, Level
and GameObjectFactory
classes to accommodate these newly completed entities.
The final step to complete the game is the collision detection that we will add to the PhysicsEngine
class.
Here are the topics we will be covering in this chapter.
- Code the alien's components
- Spawn the aliens
- Code the collision detection
We are nearly done so let's get coding.