Raycasting 101 (sprite-based)

Raycasting 101 (sprite-based)

by PutneyCat

πŸ‘ 20,698 ❀️ 837 ⭐ 744 πŸ”„ 52
Created: May 17, 2020 Last modified: Apr 13, 2021 Shared: May 17, 2020

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

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).

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

Add A Button To Beat Up Evil BBC One! (25)

by TechinRamee

Project thumbnail
View Project

My take of Romanian Alphabet Lore

by alphabetlore2014

Project thumbnail
View Project

talking tom and ben news edicion extendida numberblock basic

by matheusmaccamargo

Project thumbnail
View Project

ABPR: Beat Up Hat Pig 1 Remastered remix

by smeshnoichelovechik

Project thumbnail
View Project

toca lab plants as cat remix remix remix copy

by S29O7A

Project thumbnail
View Project

Blue Mist Plus 4,000 All Jumpscares P1 (4,000.000004-4500)

by Jharring20

Project thumbnail
View Project

Alternate Future Of Gridclose (196): AH!

by ZachyQuackScratcher

Project thumbnail
View Project

Beat Up Sonic! (2)

by newmyles

Project thumbnail
View Project

GD Lobotomies Plus #4

by issy-shark

Project thumbnail
View Project

turbo dismount

by neocar11

Project thumbnail
View Project

βš’ talking indigo and ben news (TT&BN DLC)

by doddwell

Project thumbnail
View Project

Leaked BFB 14 Intro

by maximovaleriy

Project thumbnail
View Project

edit a button to beat up ME D: remix remix

by mikey_mike

Project thumbnail
View Project

Beat up WeDo (Pico's evil twin) (added more buttons)

by sudden-error

Project thumbnail
View Project

γ«γ‚ƒγ‚“γ“ε€§ζˆ¦δΊ‰Vr.8

by nyankodaisensouAHAHA

Project thumbnail
View Project

Add yourself/your oc singing Milk (0)

by SquigglyTuff

Project thumbnail
View Project

Beat up TF-TYRE (Add buttons) remix remix

by KwekFanatic

Project thumbnail
View Project

outro for zororiku

by yusei0108

Project thumbnail
View Project

Super Mario Bros. 3

by _HeitorMvR_

Project thumbnail
View Project

College retro bowl

by GeneralKenobi321

Project thumbnail
View Project

Tug of War Asset

by codewithshark

Project thumbnail
View Project

Angry Birds Maker remix

by brandonyukodit

Project thumbnail
View Project

Beat Down Shisia RYTP (ReShared)

by Profily2013

Project thumbnail
View Project

[FULL GAME] Ultimate Custom Night! [UCN]

by POTatorK1ng5