Skip to content

Releases: 0xgreenapple/sfml-raycasting

simple sfml raycasting

18 Sep 14:50
675e317
Compare
Choose a tag to compare
Pre-release


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 :)