• Register
Description

Originally created by David Ang, this updated XNA 4.0 demo showcases a tower defense game where entities (spiders and marines) try to reach a destination (blue fiery portal) while avoiding obstacles using either steering behavior (spiders) or A* (marines) pathfinding. Tanks have been added as towers that rotate to face the furthest entity within its range. Particle effects are utilized to show starting points and destination points. This demo outlines the code for the entities avoiding obstacles with a bounding sphere and finding a path using A*. This 3D sample also implements particle systems defined by XML files loaded with the Content Pipeline. The sample originally utilized the Skinned Model Library but I've replaced it with an updated version of the XNAnimation Library. Doing so allowed me to resolve animation take issues within the spider model and support multiple animation clips within the same .fbx model file.

Preview
Ai Obstacle Avoidance & A-Star Pathfinding XNA 4.0 Demo
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: