Re, j'ai commencer à faire un petit générateur de map (pour le contour (les murs) et le sol).
Ceci me servira pour le tutoriel :
TextureManager &tm = resourceManager<Texture>("TextureManager");
tm.load("tilesets/herbe.png", "GRASS");
tm.load("tilesets/murs.png", "WALLS");
View view = getWindow().getDefaultView();
Vec2f pos (view.getCenter().x - view.getSize().x * 0.5f, view.getCenter().y - view.getSize().y * 0.5f);
BoundingRectangle br (pos.x, pos.y, view.getSize().x, view.getSize().y);
theMap = new Map (100, 50, 30, "Map test");
std::vector<Tile*> tiles;
std::vector<Tile*> walls;
tiles.push_back(new Tile(tm.getResourceByAlias("GRASS"), Vec2f(0, 0), Vec2f(120, 60),IntRect(0, 0, 100, 50), 0));
walls.push_back(new Tile(tm.getResourceByAlias("WALLS"), Vec2f(0, 0), Vec2f(100, 100), IntRect(100, 0, 100, 100), 1));
walls.push_back(new Tile(tm.getResourceByAlias("WALLS"), Vec2f(0, 0), Vec2f(100, 100), IntRect(100, 100, 100, 100), 1));
walls.push_back(new Tile(tm.getResourceByAlias("WALLS"), Vec2f(0, 0), Vec2f(100, 100), IntRect(100, 200, 100, 100), 1));
walls.push_back(new Tile(tm.getResourceByAlias("WALLS"), Vec2f(0, 0), Vec2f(100, 100), IntRect(100, 300, 100, 100), 1));
walls.push_back(new Tile(tm.getResourceByAlias("WALLS"), Vec2f(0, 0), Vec2f(100, 100), IntRect(100, 400, 100, 100), 1));
walls.push_back(new Tile(tm.getResourceByAlias("WALLS"), Vec2f(0, 0), Vec2f(100, 100), IntRect(100, 500, 100, 100), 1));
BoundingRectangle rect(0, 0, 1000, 1000);
theMap->generate_map(tiles, walls, rect);
theMap->checkVisibleEntities(br);
Je pense que je vais donc continuer les tutoriels sur les entités de haut niveau de SFGL ainsi que les entity managers.

Je vais même faire un générateur de donjon plus tard pour SFGL.

Mais en ce moment je dois surtout finir les tutoriels et faire en sorte que le code source soit au top pour la version 1.