Switch to full stage
Loading Project
Loading project …

Notes and Credits

Works best when downloaded (very, VERY slow online). This is a raycaster, ported over to Scratch. A raycaster allows for 3D scenes to be rendered from a 2D grid. Use the arrow keys to position the camera, then press space to render the scene. The original code for this raycaster was written in BlitzBasic; I simply ported it to Scratch and optimized some things. It is still too slow for real-time calculations, but much faster than Canthiar's raytracer (because raycasting is much simpler than raytracing; raycasting in Scratch needs 480 calculations and draws, while raytracing needs 172800, assuming you're drawing pixel by pixel).

TurboWarp is a Scratch mod that compiles projects to JavaScript to make them run really fast. Try it out by inputting a project ID or URL above or choosing a featured project below.