Refactored out main.cpp to be a separate gui and using an FSM to keep the turn based nature straight.

This commit is contained in:
Zed A. Shaw 2025-02-04 12:56:20 -05:00
parent 7228bdf210
commit 1d3a76e5ee
8 changed files with 300 additions and 260 deletions

View file

@ -41,7 +41,7 @@ struct Raycaster {
int $width;
int $height;
sf::RenderWindow& $window;
Matrix& $map;
Matrix $map;
SpatialMap $collision;
std::vector<Sprite> $sprites;
std::vector<double> ZBuffer; // width
@ -49,7 +49,7 @@ struct Raycaster {
sf::Shader $paused;
sf::Shader* $active_shader = nullptr;
Raycaster(sf::RenderWindow& window, TexturePack &textures, Matrix &map, int width, int height);
Raycaster(sf::RenderWindow& window, TexturePack &textures, int width, int height);
void draw_pixel_buffer();
void clear();