Something like that.
Player its a sprite object, the lightbulb its an object type called ShadowLight pinned to player, and the walls are tiledBackgrounds with the behavior ShadowCaster.
The main drawback it's that you only can use solid colors for the walls.