Could help about creating lighting and shadows in a 2D environment, like the image below.
I did several searches but got no results
( ps: sorry my bad english i'm brazilian )
Take a look at this library: Illuminated.js
it's an work in progress, but just reading the source code you can absorb some information about how they made it.