That's cool! But what is soundly? (left in the import section of your test
Ah, just a little OpenAL game sound engine I've been developing in my free time. Forgot to remove those.
mortias - So tile A might shoot a bolt to tile B, another bolt to tile C, and a third bolt to tile D? That should be fairly simple with my code.
You need to alter/remove the bending and replace the loop break with a final "lineTo(x, height)" (line 178) -- this ensures that the start and end of the bolt are on the same X plane. You can determine how tall to make the lightning using Pythagorean (point A to point B), then rotate and translate the image as necessary so that it appears to shoot from tile A to tile B. Repeat for tile A to tile C, tile A to tile D, etc.
From there, you can begin optimizing and adding more aesthetic elements: adding more bends and randomization throughout the bolt, only using a single Image instead of one for each tile connection, removing Path altogether and using your own iteration of lineTo, etc.