Now the sprites are rendered in the 3d scene with just SFML sprites.
This commit is contained in:
parent
da7075864b
commit
ad38f575a3
5 changed files with 49 additions and 41 deletions
|
@ -29,7 +29,8 @@ void TexturePack::load_textures() {
|
|||
floor = load_image(assets["floor"]);
|
||||
ceiling = load_image(assets["ceiling"]);
|
||||
|
||||
sf::Texture* sprite_texture = new sf::Texture("assets/undead_peasant-256.png");
|
||||
sf::Texture* sprite_texture = new sf::Texture("assets/evil_eye_test-256.png");
|
||||
sprite_texture->setSmooth(false);
|
||||
sf::Sprite* sf_sprite = new sf::Sprite(*sprite_texture);
|
||||
|
||||
sprites.push_back({4.0, 3.55, 6, sf_sprite, sprite_texture});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue