Do not use turbo mode, as it will make the engine extremely slow. See inside for the scripts. For an easier tutorial using 2 sprites but a slower engine, go to my new account's tutorial at https://scratch.mit.edu/projects/400299338/
Credit to the Scratch Wiki for teaching me https://en.scratch-wiki.info/wiki/Raycaster