Let me show you how I managed to let the build a group of units (3 quads + 2 tanks) and send them off to attack the human player. This only works in Campaign mode and this is the only kind of units the AI will build now (although the AI can build any kind of unit).

Caption video:

For the upcoming 0.6.0 the AI is rewritten. This video showcases new AI mechanisms working where the AI is building 3 quads + 2 tanks , and uses that to attack. Using some debug mechanisms I can see what the AI sees (and the sidebar interactions). The game is still bugged, but it shows one of the features the new AI has. Using the idea of “build a force and do something with it” the AI can be expanded. In 0.5.0 the AI didn’t really got a lot of attention. It was randomly building things and sending units to attack.


Comments are closed

Want to support? Please consider donating via Kofi.

Path finding progress demo... made it so I use a priority_queue, did X4 speedup. Nice! https://dune2themaker.fundynamic.com/video/new_pathfinder_02.mp4 #indiedev #gamedev #d2tm #dune2

Path finding testing is done on a map (64x64) where only 1 possible path exists between two corners of the map. I also found a bug in the heuristic function - it would evaluate too many cells. With that sped up greatly, but still needs to be faster.

Spent more hours on path finding. Still too slow! (100/200ms for 1 unit, finding 1 path is SUPER SLOW (on complex map)). Need to shave off more milliseconds.

It is not so hard to implement a new pathfinding algorithm. The harder part is to make it perform properly. Especially when you send over groups of units. #indiedev #gamedev #dune2 #d2tm #remake

Load More...