Raycaster now has wall collision so won't go through walls. Next step is to render all the sprites being places and then implement the Systems.

This commit is contained in:
Zed A. Shaw 2025-02-04 14:13:00 -05:00
parent 75ffb49a53
commit d6c09e111d
6 changed files with 25 additions and 6 deletions

View file

@ -33,6 +33,7 @@ struct Raycaster {
int $width;
int $height;
sf::RenderWindow& $window;
GameLevel $level;
Matrix $map;
SpatialMap $collision;
std::vector<Sprite> $sprites;
@ -70,4 +71,5 @@ struct Raycaster {
return ((y) * $width) + (x);
}
void set_level(GameLevel level);
};