GarvitSinghh / 2DRaycasting

2D Raycasting and Rendering in p5.js

Home Page:https://rays2d.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2D Raycasting

2D RayCasting and Rendering in p5.js

Made it more User Interactive and added more features like Colorful rendering and The ability to draw walls.

View it on Netlify or Github Pages


Controls:

P - Pause

Spacebar - Switch between Mouse Guided and Random Movement

Scroll - Increase and Decrease Ray Alpha

Click - Hide/Show Cursor OR Draw Boundaries

C - Cast/Uncast


Inspired from Daniel Shiffman's Coding Challenges #145: 2D Raycasting and #146: Rendering Raycasting

About

2D Raycasting and Rendering in p5.js

https://rays2d.netlify.app/


Languages

Language:JavaScript 77.4%Language:HTML 17.2%Language:CSS 5.4%