In the third part of the Hero Slide tutorial from Emanuele Feronato he adds in explosions when matching bombs: "Now I optimized a bit the code because it was a bit redundant, using an universal function to move the tiles rather than writing distinct code for each direction, and added the capability of removing tiles adjacent to a match when you match bombs. I used an array called detonations to save all tiles we will detonate – it could be more than one if you match more than two bombs."
If you wish to post comments on our site, you'll need an account. Please login or register.
Login Register