Raycasting - 2D

raycastingGIF

Wanted to try out the P5 js library.
Finally used vector math within programming, was fun being able to visualise the math on the screen.
Definitely worth watching The Coding Train's video on it. (https://youtu.be/TOEi6T2mtHo)