

Looking at the picture above shows the reasoning for having these separate arrays, lets say I am on cell number 5 and want to open a path to cell number 16 then there are only two steps to determine what to do:
1) Determine that the cell you are traveling to is underneath the current cell (this means that you will be removing a horizontal wall)
2) use the same index value of the current cell to access the horizontal walls array and make sure to make it disappear.
No comments:
Post a Comment