Sprite is no more, now using the position from the level's world.

This commit is contained in:
Zed A. Shaw 2025-02-05 11:46:40 -05:00
parent d0badedbd9
commit d5301acab5
3 changed files with 9 additions and 14 deletions

View file

@ -1,8 +1,8 @@
#pragma once
#include <SFML/Graphics.hpp>
#include "texture.hpp"
#include <SFML/System/Clock.hpp>
#include "texture.hpp"
#include "animator.hpp"
#include "spatialmap.hpp"
#include "levelmanager.hpp"
@ -34,7 +34,7 @@ struct Raycaster {
int $height;
GameLevel $level;
Matrix $map;
std::unordered_map<DinkyECS::Entity, Sprite> $sprites;
std::unordered_map<DinkyECS::Entity, SpriteTexture> $sprites;
std::vector<double> ZBuffer; // width
Animator $anim;