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 aliens and the 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:
- Coding the alien's components
- Spawning the aliens
- Coding the collision detection
We are nearly done, so let's get coding.