Thank you man. @Listrix
I did something similar, I used an entirely black tilemap on top of my game and cleared these black tiles when the player was near them.
However I think there are better ways to do it with some OpenGL magic.
My thought was to have a fullscreen black plane and somehow use masking to “make holes” in that plane when needed.
I will continue experimenting with this when I have some time over
I don’t have much OpenGL experience, but this is kinda similar, using masks to make holes in planes Making a “flashlight”