This is the source code for all the demos displayed in my notes on ray casting.
- demo1: Basic ray casting + player input
- demo2: Shading walls based on distance
- demo3: Texturing walls
- demo5: Texturing floors
- demo6: Texturing ceilings
- demo7: Applying textures to individual cells
- demo8: Sliding doors
- demo9: Sprites
- demo10: Portals
- demo11: Different floor and ceiling heights
- demo12: Rotated rendering
git clone https://github.com/nielssp/raycasting-notes
cd raycasting-notes
npm i
npm run dev