DO NOT USE THE PROJECT HERE. USE THIS LINK https://turbowarp.org/693342733?fps=60&clones=Infinity&turbo FOR PERFORMANCE. While your mouse is down, you can move the light source.
This is my second attempt at a 2d raycasting light thing. I wanted to make one because I could only find 1 (good) project on this. Seems like nobody else wanted to make one.