I want to make a dark environment in my game, which the whole playing area are black except an area around the main character can be seen. My problem is, how to make that visible area move along with the main character? And what is the method(s) to create a dark environment, actually? (I am just using a big black rectangle with semi-transparent)
Thank you for any help!