Open Dev-Laurin opened 1 month ago
My initial thoughts: we need some way to track which highlighted tiles belong to whom. So if the player is next to an enemy and they can move on the same tile, the enemy gets deselected -> his tiles unhighlight but leave the player tiles highlighted. (so we need to see if any overlap. We don't want flickering for the player).
We need some sort of data type to manage this.
When highlighting a unit then the enemy unit, then trying to de-highlight them when next to each other leaves random tiles still highlighted in blue when they should be corresponding to whatever is selected.