Brought in Amit's latest code and converted it to use either dumb lighting or his new torch lighting, then threw in the FPS counter from last night.
This commit is contained in:
parent
53a151511e
commit
831e15ca18
6 changed files with 500 additions and 247 deletions
|
@ -44,7 +44,7 @@ struct Raycaster {
|
|||
std::vector<double> spriteDistance;
|
||||
std::vector<double> ZBuffer; // width
|
||||
|
||||
Raycaster(sf::RenderWindow& window, Matrix &map, int width, int height);
|
||||
Raycaster(sf::RenderWindow& window, Matrix &map, unsigned width, unsigned height);
|
||||
|
||||
void draw_pixel_buffer();
|
||||
void clear();
|
||||
|
@ -65,4 +65,4 @@ struct Raycaster {
|
|||
return ((y) * $width) + (x);
|
||||
}
|
||||
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue