This project took me a lot attempts to complete... mainly because i was missing things not explained in the source much more advanced version is out
https://scratch.mit.edu/projects/1168848275 - b9e had some scripts that i had to use because some of the ones were not working for me in my main source. MAIN SOURCE: https://lodev.org/cgtutor/raycasting.html