Recently I was invited to assist in development of a game that is based around CS:GO’s professional scene.
The game will consist of a team that the user creates out of professional players inside the CS:GO professional league, the game will be played out with AI when combating other teams; the AI’s strength will be based around the statistic of the player, and the team who wins will receive currency to upgrade and buy new players.
I created a tool that will help tremendously when creating a scenario for the AI to battle in, this includes path nodes, spawn locations and objective locations and a map.
Note: the map used in this demonstration is from Froosh
As you can see there are rough nodes on where the teams spawn and the path the AI will be able to take.
Saving of the scenario leaves an asset like this:
The asset file stores the GUID of the image which is a reference to the image inside Unity’s Assets. The asset file also stores all the positions that were created inside the editor which all can be loaded back into the window once closed.
The current state of the window is working, however I will be adding connectable nodes, allowing the AI to calculate where they can move and follow a path using an adaptation A* path finding.
The link to the source of the window can be found here:
As I am new to developing for Editors/Windows inside Unity the source is a little cluttered and I will work on updating the window and making it more modular and user friendly.
Note: when saving the file looks at your [ProjectName]/assets/SavedAssets folder inside Unity, be sure this folder is created.