Sprite is no more, now using the position from the level's world.
This commit is contained in:
parent
d0badedbd9
commit
d5301acab5
3 changed files with 9 additions and 14 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue