ScratchData LogoScratchData
Back to -Cobalt-'s profile

Textured Raycaster (SB)

-C-Cobalt-•Created August 10, 2016
Textured Raycaster (SB)
51
38
1127 views
View on Scratch

Instructions

Textured Raycaster :D - use A and D to rotate - use W and S to move in direction pointing - textured and high fps (expect 30-50fps) - sprite based Click 'see inside' and draw on the 'world' sprite's only costume to change the map. :D

Description

I made this blind, I heard the term 'raycaster' and I knew exactly what it was. What it does is emit 90 rays spreading out from a point (eye) and stopping when hitting a wall. Then it does 90 rays from L- R and the height and darkness is based on the distance. When the ray hits a wall it does a few calculations to get a color. Too bad raycasters that are sprite based always look spherical. :P

Project Details

Project ID118085167
CreatedAugust 10, 2016
Last ModifiedAugust 10, 2016
SharedAugust 10, 2016
Visibilityvisible
CommentsAllowed