Player and enemy shots

Before we add player or enemy ships, let's turn our attention to the shots that they will be firing. We will build the ShotManager class first, because both the player and enemy ships will need to use it to fire projectiles at each other. Instead of constructing the ship classes and then revisiting them, we can build the shots first and then build a way to utilize the manager in the ship classes.

Get XNA 4.0 Game Development by Example Beginner's Guide 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.