Arrow keys for movement (forward, backward left, right) the slider adjusts the render resolution (higher number = lower res) Render distance directly affects performance due to how the raycaster works. Instead of using segment-ray intersection for rendering, this renderer naively steps the player forward by renderDist for every degree of FOV, checking if the player intersects with the level at each step. Keys 1 and 2 switch between maps. Runs better on Scratch 2.0 Offline Editor for Desktop. Feel free to improve upon ! DOESN'T WORK WITH PHOSPHORUS !
This was made as a part of my adventure for making 3D algorithms. If anyone has information on where to find math for any 3D algorithm, that'd be very helpful. Base source code was sto- *AHEM* borrowed from lukejano youtu.be/1zAruaJK-Jc