Skip to content

simple sfml raycasting

Pre-release
Pre-release
Compare
Choose a tag to compare
@0xgreenapple 0xgreenapple released this 18 Sep 14:50
· 2 commits to main since this release
675e317


Ray Casting

Simple Ray casting algorithm implemented in sfml

how to run

in order to run the code you need to Download and install sfml first,
Downloading link can be found: here

after that you have to install it in your ide
Official Installation tutorial here.

also you have to update the Resource path file.

configure the settings

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 cant be lower than 1

//boundry
BOUND_REFLECTION 3  // the size can be anything depend on you, 
MAXIMUM_BOUNDRYS 5   // the number of boundaries
  

created by

xgreenapple

twitter

website

discord

licence

this is under MIT license

happy coding :)