Im working on a small Tower Defence kinda game with a little twist, all of the enemy units will be released at once and it's upto the player to constrict their numbers into tunnels.
Of course I started with all the easy parts like towers and stuff but now I have to write the logic for crowd management, and I am abit unsure if there are any good algorithms for this?
queue.png 2.05KB 24 downloads
Here is 8 units trying to squeeze though a door which only allows one unit at a time.
I have already created a A* grid so I know where they are supposed to go, but it's the queue principle im struggling with.
Appretiate all the help.