Simple ray casting demo using the HTML canvas element and vanilla JavaScript.
js-ray-casting runs in the browser and is tested to work on the latest versions (as of February 22nd 2021) of Chrome, Edge and Firefox.
Try it out here or alternatively download the source code and open index.html
This project was heavily inspired by The Coding Train's 2D Raycasting.