Jump to content
  • Advertisement
Sign in to follow this  
Atridas

Simple RTS AI

This topic is 4015 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm programming a Multiplayer Tower Defense game. You have a base and you can buld and upgrade towers (shoots incoming enemy units) and barracs (sends units to a enemy base of your election). Now I just pretend to implement a deathmatch mode. I've got no problems doing pathfinding AI and those minor thinks, but if I want a player be controled for AI I'll need somethink more sofisticated. The think is that it is one of the last thinks I want to implement, but in the meantime I'll need some REALLY SIMPLE AI to "debug" the game while I'm adding features. Wich is the best way to do this. Building towers and barracs just randomly seems like... ugly xDDDD Oh, and a decent AI for these game how will look like (I'm planing some fuzzy logic, I understand the basics but I hadn't still implemented anythink. You see why I need a simple AI before? xDD)

Share this post


Link to post
Share on other sites
Advertisement
I would apply Floyd-Warshall to compute the maximum flow from the creep entry to the creep exit, then try to place a building as close to points of maximum (blocked) flow without actually blocking it. For the choice of tower, I would probably choose the one which provides the highest damage-per second times the amount of flow through the range of that tower.

Share this post


Link to post
Share on other sites
I googled Floyd-Warshall and it's a shorteth path algorithm for all nodes (Or somethink alike). You would place the buildings (wich trow units to the enemy base) in the node with less cost? What do you mean with flow?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!