Player goals

The player's purpose in the game world is two-fold. First, they need to destroy enemy robots that are trying to destroy them. Second, they need to shut down the computer terminals that are building the enemy tanks. Since the computers spawn the tanks, we will implement the terminals first and then add our robotic enemies.

Computer terminals

Our path-finding code will be put to the same purpose in the generation of computer terminals that it was for power-ups. After all, the player cannot shut down a terminal that they are unable to reach:

Computer terminals

Each terminal will be represented by a Sprite that plays a multi-frame animation when active. When ...

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.