SFML community forums

Help => General => Topic started by: Yuber on July 05, 2011, 12:32:14 pm

Title: MapLoader like in Slick for TILED?
Post by: Yuber on July 05, 2011, 12:32:14 pm
Hey!
Before SFML I made a game with Slick2D.
Slick had a function to load the .tmx from Tiled Map Editor.

Is there the same for SFML or has someone write this class?
Or do I have to make it myself?
Title: MapLoader like in Slick for TILED?
Post by: Haikarainen on July 05, 2011, 12:42:00 pm
You probably have to code it yourself, no such thing is available in SFML since it's purpose isn't to create games, but just provide graphics, input, sound, network. It's easier than it seems to create a tiled mapsystem. A good approach would be to create a cMap class, and cTile class, and try to load a custom mapfile into the game.
Title: MapLoader like in Slick for TILED?
Post by: JAssange on July 05, 2011, 01:49:15 pm
I had to read Tiled maps previously, it's pretty easy to make a loader with TinyXML.
Title: MapLoader like in Slick for TILED?
Post by: PeterWelzien on July 06, 2011, 01:34:21 pm
Here's a Tiled map loader: http://sfml-dev.org/forum/viewtopic.php?t=3023