3 ms·
Some is scripted. They do a variety of other things too. For example, path finding gets its own algorithm. And they have algorithms for getting multiple guys to
by curi 19y ago
Some is scripted. They do a variety of other things too. For example, path finding gets its own algorithm. And they have algorithms for getting multiple guys to move around in formation. Sometimes there is some type of system with goals (get 1000 wood, get an 80 food army, kill X base, etc) and then it picks things to achieve those goals (build more wood harvesters, build more units, attack). sometimes they use "learning" algorithms where they tweak parameters by running the AI repeatedly and seeing which does better, and they can use games with a human player to do that too (if it wins too badly, have it aim less precisely). And lots of other one-off things.
- marcus 19y agoMy algorithm won't replace A* as a path finding algorithm, and it wasn't designed to do swarming ( although maybe I can adapt it to swarming ). And as far as I know most of the rest is totally scripted... Again not exactly my field so I need to read up on it before I can rule it out.