The basics behind Diamond Digger Saga: flood fill algorithm

Are you playing King‘s Diamond Digger Saga?

I am going to create a prototype of the game during next days, but everything is built upon flood fill algorithm I already explained in this post.

I am showing you the same thing I made with AS3 built with Phaser which yesterday released 2.1 version.

Click on a white space to fill the tiles with flood fill algorithm. You can check the theory behind this concept in the original post, and here you can find the full source code:

Both water movement and gem selection in Diamond Digger Saga can be managed by floodFill function.

You can download the full project and wait for the prototype.