I now have hacked in basic color for the wall tiles but not enemies and items.
This commit is contained in:
parent
b2d0b0ee4c
commit
b16ca3fd65
4 changed files with 30 additions and 3 deletions
|
@ -121,7 +121,7 @@ TEST_CASE("map image test", "[map-sprite]") {
|
|||
auto coords = sprite_coord.at(display);
|
||||
sf::IntRect square{coords, {size.x, size.y}};
|
||||
sf::Sprite sprite{map_sprites, square};
|
||||
sprite.setColor({150,150,150,255});
|
||||
// sprite.setColor({150,150,150,255});
|
||||
sprite.setPosition({float(it.x * size.x), float(it.y * size.y)});
|
||||
render.draw(sprite);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue