Help needed working on a game like candy crush C++ OpenGL
Hello there, I am working on a university project of mine where i have to create a candy crush type game using openGL and C++. Currently i have done the GUI menus and just started working on the actual game starting from level design. I inplemented a way to generate random levels now Current condition : i am trying to establish a way to swap the gems by dragging the mouse through the gems. Problems faced: 1-In my code i made a function for swapping gems within which are few if else conditions in one case when the condition is true the compiler skips 2 lines of code where i am assigning coordinate values in a array. 2- I am looking for a idea/method for inplementing finding combinations as my current one is lacking a bit. I will keep updating the thread according to my progress and issues faced until project is completed.