So Recently I have been trying to figure out how I would go about putting together a rudimentary puzzle game system inside of Unity. Something based in blocks of a static size and shape. What I arrived at was that I should create a 2D gird using a 2D array that could then store the positions of all of the various puzzle objects in the grid. That would be easy to loop through and check for matches and etc. My biggest question is really how I would go about tracking the position of the puzzle objects inside that array!
I was also wondering about the “best” way to go about establishing that 2 dimensional grid. This question is sort of broad. Please ask away in the comments if you need me to expand on anything here. Thanks a lot for the help!