Enemy ships

Now that the player can fly and shoot their weapons, it is time to give them something to shoot at!

Enemy ships

Our enemy ships will follow a series of waypoints (specified as a list of vectors pointing to screen coordinates) across the screen. Because we need this new type of behaviour that all enemy ships will implement, we will create an Enemy class as well as an EnemyManager class.

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.