I built an XCOM2-style prototype in Unity. I started with Code Monkey’s turn-based strategy course as a base, then expanded it with my own systems.
Each unit has a limited set of actions per turn. Movement uses an A* pathfinding algorithm to find the best route across the grid and shooting factors in a cover system where half or full cover reduces the chance of being hit.
I also added overwatch, which works just like in the game, if an enemy moves within line of sight during their turn, your unit automatically fires.
On top of that the AI evaluates possible moves using a points system, so enemies can decide between attacking, moving to cover, or setting up overwatch depending on the situation.
This project gave me a deeper understanding of working on larger, more complex systems in Unity, and taught me a lot about connecting different systems into one project.
Controls:
LMB : Confirm action ( except move)
RMB : Confirm move action
TAB : Switch selected unit
WASD : Pan Camera
Q/E : Rotate Camera
T/G : Zoom in or out with camera
Scroll wheel: move up and down with camera
- / + : Adjust volume