Hi, i'm working on a game and want that when i create an object it gets added to an array (so it's easier to draw and maybe
change coords and stuff).
I only don't know how to do it.
If it helps here is my function:
void CreateTile(string Texture, sf::Vector2f Pos)
{
sf::Texture texture;
texture.loadFromFile(Texture);
sf::Sprite Tile;
Tile.setTexture(texture);
Tile.setPosition(Pos);
}
Thanks in advance!