Have a barely working animation thing that animates the evil eye when you click a button.

This commit is contained in:
Zed A. Shaw 2025-01-27 05:40:04 -05:00
parent 51c1e04f61
commit b87217ff90
7 changed files with 35 additions and 2 deletions

View file

@ -12,6 +12,7 @@
#include <memory>
#include "texture.hpp"
#include <SFML/System/Clock.hpp>
#include "animator.hpp"
using matrix::Matrix;
using RGBA = uint32_t;
@ -43,6 +44,7 @@ struct Raycaster {
std::vector<int> spriteOrder;
std::vector<double> spriteDistance;
std::vector<double> ZBuffer; // width
Animator $anim{256, 256, 10, 0};
Raycaster(sf::RenderWindow& window, Matrix &map, int width, int height);