Showing posts with label rts multiplayer ai. Show all posts
Showing posts with label rts multiplayer ai. Show all posts

Tuesday, December 28, 2010

RTS AI

I released the full version of box fox!! Will be adding more maps and element to it in future.


Have done some random work on the RTS,

-Cleaned up a lot and made the controls nicer
-Have created stationary turrets
-Have started some the AI, it currently works out where to put a base, and builds up, but doesn't attack yet.




I decided that the AI is going to be very spatial based. it will mark out areas for it's base, areas that need more defence, areas that do lots of damage to the enemy, and areas that it takes heavy losses and should avoid.

The multiplayer is going to be done using the classic lock-step method (where all orders are queued, and run in sync), that way it works well on slower mobile connections, and handle lag better if done right. I feel supporting saving and loading multiplayer games at some stage is necessary due to the game being on a mobile phone, so I'm going to have to write code to resynchronize games. I'm also not sure how well mobile phone CPUs match with floating point maths so I may be forced to write that resynchronizing code anyway.