Tower defense genre
Once again, the principle that we will be using to make our character move from one point to another can be applied to both 2D and 3D games. In this example, we'll explore how to create the main characteristic of a Tower Defense game: the enemy pattern. The objective is to have the enemies spawning at a start point and following a path so they can reach the final point. The enemies in a tower defense game usually just have this in mind, so it is a perfect example to test how to create point to point movement.
A Tower Defense game usually consists of two areas: the area where the enemies walk from their start position to the final position, and the area where the player is allowed to build towers that attack the enemies, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access