VERY VERY VERY LAGGY PLEASE USE TURBOWARP FOR BEST EXPERIENCE!!! green flag, use variables to change the raycast, you may want to go to turbo warp for better raycasts such as a quality of 60 or better with a high range. when going to turbowarp, input "https://scratch.mit.edu/projects/1281369280/" at the bottom where it asks for the link, this makes it run the project faster because it runs it in javascript rather than scratch's engine.
UPDATE 0.1: added player collisions to the level and optimized the ray casts to reduce lag UPDATE 0.1.5: trying to get it to connect to make areas that are visible to the player (Lord have mercy on my soul I'm fried) UPDATE 0.2: kinda made the areas connect, idk why its doing all of that ngl please help UPDATE 0.2.1 (5/20/26) : so turns out I had a SINGULAR +1 THING AND IT BROKE EVERYTHING AFTERWARDS; good news it works now Added (officially): - New map (makes things easier to test with different shapes and stuff - lines between points (this took SO long I want to cry) - you can finally see the level and change the brightness and stuff with up and down arrow keys UPDATE 0.3 (5/21/26): Added "enemies" that are only visible when you get them in range.