ScratchData LogoScratchData
Back to Java_Programmer's profile

Raycaster with Transparency

JAJava_Programmer•Created June 15, 2017
Raycaster with Transparency
75
55
822 views
View on Scratch

Instructions

Use the arrow keys to move and turn, and check out Spidertest's original project for more cool raycasting. :) Use phosphorus if it gets too slow: https://phosphorus.github.io/#166184438

Description

All of the code for movement and detecting walls was made by @Spidertest; I just modified the drawing aspect of it. Thanks to @PullJosh for dynamic resolution (resolution changes to match your speed). In case you're wondering, drawing more walls through transparent ones was done by using recursion (basically, add a wall to the list of walls that need to be drawn and draw them from most recently added to the first added).

Project Details

Project ID166184438
CreatedJune 15, 2017
Last ModifiedOctober 8, 2017
SharedJune 15, 2017
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root