GDevelop has a cool feature where you can have objects block lights emitting from another object. I put invisible collision boxes on the walls and furnitures so that the player won't be able to clip through them nor the light emitting from the player character will be able to shine through them.