What Is Tower Defence?
A tower defence game is one in which enemies (usually called creeps) attempt to move from a starting location to a target, and the player’s job is to place defensive towers in order to stop them. The towers fire various sorts of missile at the creeps, automatically choosing targets where necessary. When a missile hits a creep, some damage is done, and when a creep takes enough damage it dies. When the player has let too many creeps through, the game is over. There are two types: (i) ‘free TD’ (like the popular Desktop Tower Defence), where you can place towers anywhere and the creeps use A* pathfinding to find a valid route if you block their current one, and (ii) ‘path TD’ (like Onslaught), where creeps follow a fixed path and you cannot block them. Infinite TD is a path TD, because a free TD requires a lot of coding to do the pathfinding which is not particularly instructive in terms of producing a game. So, we will clearly need coding constructs for certain features: • Creeps. Each