Have a barely working animation thing that animates the evil eye when you click a button.
This commit is contained in:
parent
51c1e04f61
commit
b87217ff90
7 changed files with 35 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue