Dev-Laurin / DefendMarsai

A fireemblem like strategy game.
GNU General Public License v3.0
0 stars 0 forks source link

Highlighting tiles bug #16

Open Dev-Laurin opened 1 month ago

Dev-Laurin commented 1 month ago

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.

Dev-Laurin commented 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.