2D Game Map Area

Hello,
the red area in the image will be the area that the player can see, the area outside it will be black, and when the user comes to the orange area, the back part will be closed to go and the area in front of it will be active. how can I do that?
Thank you.