This demo project presents various elements of a real-time strategy. I created it to experiment with various Unity features.
You can watch demo video here. In addition to gameplay, this video contains short explanation of the algorithm behind units' formation change.
Some interesting points in the source code:
- Formation change (featuring search for the perfect matching with the additional criterion: weight of the heaviest edge should be as small as possible): code.
- Programmatically created sector-shaped mesh representing unit's field of view: code.
- Smooth switch between "strategy-style" and FPS-like camera: code.