Quite simple example using adjust HSL effect and Line of sight behavior. However if you cannot use Webgl effects you could also make it use grid of black blocks and change their opacity for example.
https://www.scirra.com/tutorials/1196/simple-tile-based-lighting