Hi, so I'm just working on a platformer, and I want to make it so you can only see things that are in front of you, and the rest is dark.
How would one go about doing this?
Develop games in your browser. Powerful, performant & highly capable.
here is a neat way to do it: