Chapter 4: Continuing the Space Shooter Game
This chapter continues on from the previous one by completing the twin-stick space shooter game. At this point, we already have a working game. The gamer can control a spaceship using two axes: movement and rotation. The WASD keys on the keyboard control movement and the spaceship rotates to face the mouse cursor. In addition to player controls, the level features enemy characters that spawn at regular intervals and move toward the player. Finally, both the player and enemies support a Health component, which means both objects are susceptible to damage. Right now, however,the game lacks two essential features: the player cannot fight back against the enemies and there is no system to keep track of and display the score. This chapter tackles these issues and more.
Once you've completed this chapter, you should have a solid understanding of the following topics:
- Creating a projectile
- Spawning the projectile at runtime...