I'd like to create lights and shadows in a 2D environment, like in the image below:
I did several searches but got no results. Do you have any hint?
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.