So I am in the process of creating a match 3 game for my internship and struggling to find a nice, clean way to get gems to navigate through the grid.
Currently, gems fall vertically perfectly and looks very nice. However as time went on, they wanted “obstacles” such as holes in the grid, to which gems should move around, very much like candy crush.
I can’t seem to find a nice method to go about this, my plan is to use a path finding algorithm that simply navigates each gem down the way until they can no longer. We had something like this before but it causes “overlap” if you want to have gems fall async, rather than 1 column at a time (slows down user experience), so I would need to figure out the criteria that needs to be met before a gem that may cause overlap can move.
Then I thought, surely there is a better damn way of doing this? This seems overly complicated and it shouldn’t be. Does anyone have any ideas? Sources? Techniques? Would appreciate any insight to this.