Friday, February 12, 2016

Game Update

Issue Fixing:
Have been fixing some AI movement issues. There were times when the AI would just go in a straight path instead of following the roads. Looks like even the AIs want to break the law :D . So had to to fix that and hopefully there won't be any problem related to that in the future.

New Features:
Now the AI will search for the nearest interested building. For example if there are two or more buildings which have work available the AI will choose the one which is nearest to it. If the AI wants to go to a storage it again will find the nearest one first and then go to it. This really improves the feel of the game a lot. Before it was finding the first interested building which looked and felt kind of dull.

There is also a range involved in finding interested buildings. If the AI can't find any interested building within its range, even though there are some in the game, then it will keep searching. This also gives some substance to the game as the player will have to plan out how to proceed in making the town. This also creates a problem which is that certain elements won't be able to be present to the AI. For example, if there are some workers that require woods for their processing and they are out of range of the storage that has some wood then they will never reach those woods. Don't worry I have come up with a solution to tackle this problem which I will talk about in the next feature (basically the last paragraph :D).

I haven't uploaded the game yet. I will do so once the above problem have been resolved. No need for one side of the town to be completely idle for this problem.

What's Next?
I am working on transporters at the moment. These AIs will be able to transport goods/produce from one storage to another. This will solve the goods/produce out of reach problem. The player will be able to tell the AI which goods/produce the AI is suppose to take and to which storage it is suppose to transport. I will also try to implement when the AI is suppose to transport the goods/produce when a certain limit has been reached.

K Out!

No comments:

Post a Comment