How to achieve 2d lights blocked by the wall

I used the alpha blending method to implement 2d lighting, but I don’t know how to achieve the light blocking by the wall. There is no idea. How can I achieve it,Like right。

Maybe this could help you out: