The AI overhaul has been a big success

The AI testing arena

The AI testing arena

I should have coded the AI this way all along, of course. The new guard AI is such a vast improvement over how it was before, and they now behave much like you think they should. This changes the difficulty of the existing levels for the better and puts to rest a long-standing reservation I had about this game.

I got around the lack of full pathfinding by having guards intelligently navigate around obstacles of arbitrary sizes… It essentially hinges on the fact that if you’re in a maze, taking every right hand turn you come across will eventually get you out.

Of course, switching code in mid-stream is not easy with MMF2. I’ve experimentally transitioned to the new AI code in a few previous missions and it all seems to work out fine.

The process of doing this has also made me consider touching up the line-of-sight calculation that all the AIs use. As it stands, it’s a very complex calculation that uses the same code as my bullets. It’s much more computationally intensive than it needs to be, and if I can pull off the refactoring I have in mind, it will dramatically improve framerates.


7 thoughts on “The AI overhaul has been a big success

  1. That is really great to hear that you are working on upgrading your project but i hope it wont slow you down.
    Looking forward to your game!

      • Have you tried ActivePresenter, BB FlashBack Express, CamStudio and HyperCam? All these programs have free versions. To my opinion BB FlashBack Express is the best amongst them.

        • I used to use CamStudio, but for whatever reason, the output is stuttery now. Fraps gives me a blank screen.

          I think it’s a problem with codecs and encoding instead of with the software, as always… I think there just isn’t a nice, user-intelligible solution for this application yet. Write one, and you could make a lot of money…

Leave a Reply

Your email address will not be published. Required fields are marked *