Thanks! Now I am clear about how stuff works using SFML.
BTW what do you suggesst is better - keeping tile maps in separate text files and using them through the fstream class objects or by declaring them in a sf::String?
Like:
#include <SFML/Graphics.hpp>
#include <iostream>
#include <fstream>
.
.
.
int main()
{
std::fstream tilemap("Tilemap.txt", ios::in);
.
.
.
}
OR
#include <SFML/Graphics.hpp>
sf::String tilemap[10][10] =
{ "1 1 1 1 1 1 1 1 1 1",
"1 1",
"1 1",
"1 1",
"1 1",
"1 ##### 1",
"1 1",
"1 1",
"1 1",
"1 1 1 1 1 1 1 1 1 1",
};
.
.
.
int main()
{
.
.
.
}