Hi everyone,
assuming that i want to make a 2D tile-based game, such as Avadon or Fallout 1/2, in which roofs can disappear to let look inside buildings (like Fallout 1/2), or in which different tiles get darkened depending if they are visible or not to player (like Avadon) (for example), is it right to use Sprites for substantially everyting?
for(each tile to show)
{
Sprite.setTextureRect(sf::IntRect(x,y,z,k)); //Get tile
Sprite.setPosition(sf::Vector2f(i.f,j.f)); //Draw coordinates
Sprite.setColor(sf::Color(255, 255, 255)); //Light
window.draw(Sprite); //Render
}
Avadon
Fallout