Demo of 2D and 3D raycasting using JavaScript and an HTML canvas.
No libraries, all from scratch.
Resources/references:
Inspired by one of tsoding's streams where he implemented a 3D raycaster with canvas:
- Clone the repo.
cd src
npx serve .
View the app running at localhost:3000
.