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 ...

Get Unity 2020 By Example - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.