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:
parent
75ffb49a53
commit
d6c09e111d
6 changed files with 25 additions and 6 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue