Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

user-simon/2D-RayCasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D Ray Casting

2D Ray casting using C++ and SFML.

Ray casting is a method of simulating light by simulating each ray individually and calculating it's intersection point with an object.

In this project, rays are shot out from the cursor in each direction and stop at an intersection. You can use "R" or "Space" to re-randomize walls.

Note:

You have to set up SFML yourself for the project to compile.

Graphics