ScratchData LogoScratchData
Back to PutneyCat's profile

Raycasting 101 (sprite-based)

PUPutneyCat•Created May 17, 2020
Raycasting 101 (sprite-based)
862
769
22208 views
View on Scratch

Instructions

Spacebar or click screen to progress through tutorial. Full screen recommended. You can move around the map with the arrow keys in the early part of the tutorial, and at the end. To use these scripts for your own raycaster, delete all the sprites beginning with a "T" (for tutorial), and connect up the green flags in the remaining four (the first four).

Description

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

Project Details

Project ID396207097
CreatedMay 17, 2020
Last ModifiedApril 13, 2021
SharedMay 17, 2020
Visibilityvisible
CommentsAllowed