Tower Defense Game: Path Finding

Instead of making the level designer draw out the path for the enemies to walk, it makes sense to generate a path automatically using graph theory and a little bit of recursion. We want an algorithm that can generate all legal path combinations if there’s more than one entrance or exit, also.

Keen to read the rest?
This article is for premium members only

Liked the Article?

Why not follow us …

Be Inspired Get Python tips sent to your inbox

We'll tell you about the latest courses and articles.

Absolutely no spam. We promise!