Project Your Turn is a turn-based strategy game that incorporates A* algorithm. The gameplay is simple - the player and the enemy take turns in controlling their units and fight it out in tactical battles. The project was made as an attempt to learn A* and control of multiple units.
At the start of the game, a level grid is spawned. The grid positions are then dynamically allocated. The grid itself is made out of path nodes - each node has g, h, and f costs. A* algorithm is used to calculate the distance between every node and place them in worldspace. The movement is determined by the A* algorrithm and the Pathfinding checking to see if the grid is occupied during a turn.
A system of actions that the player or the enemy can do. Each action is extended from the BaseAction class and attached to the unit prefab.