Simple Ray casting algorithm implemented in sfml
In order to run the code you need to download and install required libraries and frameworks, sfml is required.
Sfml download link can be found here
after installing required libraries you have to link them in your prefered IDE.
Official Installation tutorial for osx, xcode can be found here.
if your are in osx, you have to update the resource path file.
the setting file is /Game/settings.h/
WINDOW_HEIGHT 1200 // The height of your window
WINDOW_WIDTH 2000 // The width of your window
GAMENAME "ray casting" // name of the game window
FPS 60 // window fps
RAY_DENSITY 1 // The denstiy of light ray, min is 1,
//boundry
BOUND_REFLECTION 3 // The size can be anything depend on you,
MAXIMUM_BOUNDRYS 5 // The number of boundaries
0xgreenapple
this is under MIT license
I've created this long time ago, when i was learning. It prob need a update. I'm not even sure now if it'll run. I'll think of updating it soon, when i got time.