Raycaster

Raycaster

by -Rex-

πŸ‘ 55,990 ❀️ 3,517 ⭐ 3,011 πŸ”„ 204
Created: Jul 29, 2020 Last modified: Nov 10, 2020 Shared: Jul 30, 2020

Description

Controls - WASD to move - Left and right arrow keys to look around - Mobile: touch the screen in the direction to move/turn To increase your FPS, use turbowarp: https://turbowarp.github.io/#414675446 This uses an "adaptive sampling" method I created (probably not for the first time outside of Scratch), which uses recursion and interpolation. If two nearby rays touch the same edge within ~1–2 tiles of each other, interpolation is used to increase performance. If a corner is detected, both rays touch different edges, or at least one ray touches nothing, recursion is used. Inspiration - https://scratch.mit.edu/projects/321563697/ - https://scratch.mit.edu/projects/196528109/ Changelog (These are updates to the raycaster, not the demonstration) v1.0.3 (2020-07-30) - Increased the ambient light level on the regular and fast render settings v1.0.2 (2020-07-30) - Improved the lighting system v1.0.1 (2020-07-29) - Fixed a bug with gridlines - Removed unnecessary gridlines to slightly increase performance v1.0 (2020-07-29) - Released

Project Details

Visibility
Visible
Comments
Enabled