I spent a LOT of time on the AI this week, I wanted to bring it to a point where you could actualy fight it.
Mechanics:
AI based changes:
The AI can now:
-manage it's happieness and taxes
-manage it's market
-recruit worker units if they die
-recruit military units (it has a defender army and an attacker army)
-use the blacksmith
-open and close gates
-spawn and use its king (only for attacking for now)
-If the AIs king dies he respawns at the graveyard if there is one
-If the AIs king dies and he has no graveyard, the AI will be destroyed
-The AI has now skills (like the player) depending on the difficulty
-The player can no longer see the resources needed from the AI
-The AI's information is now saved as an json file for easy modding
Other changes:
-The camera in the angled view will now rotate by 90° when pressing ctrl
Bugfixes:
-The player could not pause when an AI was in the battle
-If you had no villagers the plague could not go away
-The player was not able to "jump" with the camera to his position in the angled view
-Builders have now a second way to detect if they got stuck
Next week I will update the lobby with some UI that you can select the AI and the difficulty of that AI.
As well as some more improving of the AI:
-AI attacking spawners if in the same team as the player, at the moment it will only try to attack the player
-Making the AI attack units that are inside of its castle
-making the AI rotate its castle towards the player
-Test with multiple AIs
-Test with multiple players
-Making the AI able to upgrade houses and removing builders
-Fixing some bugs tha AI has
Changelog Version 1.0.2
Posted by GamingPugs on