top of page
Writer's pictureMatthew Esslie

Strategy Game AI

With another project ready to be added to my page here, I have another blog post to discuss the project, what I wanted to accomplish and what perhaps I could do in the future based on what I accomplished. This project is somewhat of a continuation of my first small solo project, where I made some basic RTS game controls. I wanted to try something similar, while also covering a different topic that could show off some different kinds of skills.


What I Did


For this project, I made a simple AI that can control units and move them to collect resources depending on what it needs more between the two added resources of food or gold. When the AI has enough banked resources for either category, it will create a new unit that it will then tell to go collect resources. They then return the resources to their team base in order to bank said resources. As the amount of resources changes, the AI will have its units change the resource being collected back and forth, so they have a level of reactivity to their actions.


Project Challenges


This project had a few challenges as I was moving through it and determining what would be the best way to structure the assignment. Most of the problems were not really implementation as much as planning and structuring how the systems would work. That ended up being a bit more time consuming then I would have hoped for, and so it limited somewhat the amount that I was able to accomplish. I also had an issue when I attempted to add in essentially a sit at location pause while the unit collected resources for any certain amount of time. It ended up causing issues with the movement and I have not had the chance to revisit and attempt to solve the time pausing collection issue, it currently happens instantly.


Future Goals


In the future, I have a few different goals that I want to accomplish for this project. I want to try to balance the food and gold usage from creating units to force the AI to make more decisions from resources being used. I also want to add another type of unit that could go attack the base of the other team or the other team's units, to provide some extra variety in the content. Adjusting future resources as well to add new types of resources to manage could be interesting as well.


Conclusion


Overall, I think this project was pretty solid. There is definitely more I want to accomplish with it to have it show off more interesting actions, but this has been a good start to adding all the things I might have in mind for a basic version of this concept. Some of the decision making could potentially be refined to make it easier to add new resources and unit types into the process, but that will probably be a longer term goal for additions and updates to the project.

3 views0 comments

Recent Posts

See All

Shooter Mechanics Project

For my final personal project of this semester, I wanted to experiment some with simple shooter mechanics. Shooters are a really popular...

Comments


bottom of page