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

Monster Vehicles By Me

by BikerAlt

Project thumbnail
View Project

Recommended contestants generating game remix remix

by bfdieditor17

Project thumbnail
View Project

Outfit7 Films Anti Piracy Screen (2024 to now) #2

by LG0807

Project thumbnail
View Project

I downloaded the midi and put it in Jummbox

by weirdcore-is-cool

Project thumbnail
View Project

Beat Up The Fib (Reuploaded)

by newmyles

Project thumbnail
View Project

AYS: Boiler Test V2

by TheRealJamesRed05

Project thumbnail
View Project

ANDRES VARON 8°K

by andresvaron

Project thumbnail
View Project

Numberblock 1 band - test

by Byronbroxd

Project thumbnail
View Project

All Hotel Mario Cutscenes remix remix

by jcoe2009

Project thumbnail
View Project

Drop the Ball 2 【呪術廻戦】【拡散希望】-2

by aoi0507ko

Project thumbnail
View Project

Super Sonic Maker 2 (V.01)

by GamerJax29

Project thumbnail
View Project

Супер мемы лунтик

by ROSgames_studio

Project thumbnail
View Project

Video Games like be............

by scratch_captain

Project thumbnail
View Project

My New Monthblocks Band!

by SUPERBOI15

Project thumbnail
View Project

(AY) Destroy the "Project could not save"! (8) remix

by KeKeboi118

Project thumbnail
View Project

All Numbericons 1-600 all be now SURPRIZE! AND FASTER!

by marco2robotica

Project thumbnail
View Project

Minecraft Scratch Edition v1.0.3.1.Release

by KhangDeveloper

Project thumbnail
View Project

Satisfying 60s countdown timer!

by CubeMaster_135

Project thumbnail
View Project

paper minecraft ultimate mod!!

by polandball-games

Project thumbnail
View Project

[Ver.1.1] undertale au Under ice swap 【hard mode】fight! phase 1~2

by scratch99889988

Project thumbnail
View Project

Russian Alphabet Lore but Ъ [update]

by raitan0619

Project thumbnail
View Project

Red Ball 6 V0.11

by KewICat

Project thumbnail
View Project

UTMM Scratch Edition: Error's choice

by XxLogan170507xX

Project thumbnail
View Project

-<[{(Collabs)}]>- talking tigra and benchik news the joy creation remix

by jayjayy1809