Raycasting 101 (sprite-based)

19,553
0
Published 2020-05-17
This is aimed at anyone wanting to try the "easy" sprite-based method of raycasting.
It does things a little differently from the Scratch Wiki's version: the base raycaster is simpler in some ways (no lists or broadcasts) but it does use a couple of trig functions.
For a tutorial on the more complex list-based version, try https://scratch.mit.edu/projects/337452463/
SVG scratchblocks created using the terrific https://scratchblocks.github.io/
Eiffel tower pic from https://parisworkingforart.wordpress.com/2009/12/31/the-eiffel-tower/#jp-carousel-50