I'm working on a Puzzle Bobble clone for a web design client, and I've got the basic mechanics in - but I couldn't get any of the flood fill examples provided by forumgoers to work right. I eventually devised a flood fill method that works, but very poorly - it's slow and system-intensive, and doesn't loop right. This means that there can be a delay before a bubble match is recognized, and an especially long delay for bubbles that are no longer connected to be recognized as such and be forced to fall - especially when the screen is full of bubbles.
Here's the capx:
https://www.dropbox.com/s/3pb7uwssfw9fs ... .capx?dl=0
And here's a live web demonstration:
http://battlestudio.com/bubblepop/
The controls are - left click to shoot a bubble, middle click to make a new bubble row on the top. There are also touch controls implemented, but no touch debug key for making new bubbles yet.
I can probably make a workable full game with this imperfect method, but I'd really appreciate it if anyone could help me put together something more solid! And of course, feel free to learn from my code if you were curious about making your own game of this type!