Use the arrow keys or WASD to move. This does not exhibit as much lag with lower ray speed (although it is noticeable), in comparison with the sprite-based raycaster that I made. Likely because of no sprite movement occurring except for drawing frames.
I got inspiration from the Scratch Wiki on list based raycasters, however I did not use those instructions. I also got the idea for the raycasting algorithm and some movement scripts from https://scratch.mit.edu/projects/537490261/. ---------------CHANGELOG------------------- v2.0 fixes: (4/11/26) - added a penup block where needed - removed warping effects (fish-eye from using exact ray travel distance, and another one from naive ray angle adjustment) with trigonometric adjustment of angle and distance - (this is based upon the sprite costume based raycaster I made earlier) - changed color scheme, added backdrop - fixed movement and wall clipping glitch when going backwards - added WASD v2.1 fixes: (5/29/26) - increased line thickness (by one pixel. dependent on resolution setting)