Player goals
The player's purpose in the game world is two-fold. First, they need to destroy the 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 use 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:
Each terminal will be represented by a Sprite that plays a multi-frame animation when active. When the player shuts down a terminal, the sprite will be replaced by an inactive terminal image.