You gonna do a lighting engine or what?
They're so much fun to plan out! I made black polygons starting at the edge of the obstacle. Then, using a little math, I was able to morph these polygons according to the light source and direction. Gotta love coding.