Hi everyone, I did some shadow casting tests. I don't know if there's better ways to do this with some plugins.

Drag lights and objects around with your mouse. Add lamps with mouse middle, delete with mouse right and when you are ready to calculate the shadows, hit enter and wait until it's done. To reset everything hit spacebar.

In this version light sources are casting light. Try to create walls to see how it works.LightCasting

This one is using opposite method and is a bit heavier to calculate.ShadowCasting

This one is casting realtime dynamic shadows. I made it really light and the cool thing is that it also works without WebGL. It should run around 60FPS.DynamicShadowCasting

This is really cool. I've just posted my experiments in lighting with C2 here: http://www.scirra.com/FORUM/topic67369.html. Apologies if that just shows the URL and not a link you can click, I have BBcodes enabled but it doesn't seem to be working for me (no idea what I'm doing wrong as it previews perfectly).

I'm very impressed that you're doing the effect in just 7 events, I'm obviously doing it the hard way as mine are a lot more than that. Good work