Skip to content

Program demonstrating a rendering technique called ray casting written in JavaScript and implementing the p5.js library.

Notifications You must be signed in to change notification settings

adanpartidajr/raycasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raycasting

This is a prototype to demonstrate a rendering technique called ray casting. It was made popular in video games by id Software through use in their first-person shooter Wolfenstein 3D. The JavaScript file uses functions from p5.js to make rendering easier but the algorithms for determining player angle, distance from wall, closest wall, etc. were coded from scratch.

My Project GIF

To run the prototype, download or clone this repository and navigate to the folder and right click on the file named "index.html" and select "Open With" and choose your browser of choice. Moving the player around the grid uses the up, down, left, and right arrow keys.

About

Program demonstrating a rendering technique called ray casting written in JavaScript and implementing the p5.js library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published