Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: MapLoader like in Slick for TILED?  (Read 2815 times)

0 Members and 2 Guests are viewing this topic.

Yuber

  • Newbie
  • *
  • Posts: 1
    • View Profile
MapLoader like in Slick for TILED?
« 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?

Haikarainen

  • Guest
MapLoader like in Slick for TILED?
« Reply #1 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.

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
MapLoader like in Slick for TILED?
« Reply #2 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.

PeterWelzien

  • Newbie
  • *
  • Posts: 38
    • View Profile
MapLoader like in Slick for TILED?
« Reply #3 on: July 06, 2011, 01:34:21 pm »
/Peter Welzien