So for one of my projects I've been trying to get an effect so the player can only see in a certain range around them, like having a light in a dark hallway or maze kind of game. I've looked through tutorials and some scenarios but going into the code and trying understand isn't working.
I currently only have player movement at the moment on a blank scenario but hopefully this image shows what I'm trying to achieve:
https://www.google.com/search?q=2d+dark+maze+game&safe=strict&rlz=1C1GCEV_enGB867GB867&source=lnms&tbm=isch&sa=X&ved=0ahUKEwjs0pyp5fjkAhWdThUIHfynDfYQ_AUIEigB&biw=1680&bih=939#imgrc=l-21jDx2V9JIxM:
Can anyone help?