SFML community forums

Bindings - other languages => DotNet => Topic started by: Mad on August 30, 2013, 07:59:43 pm

Title: Map and Map Editor
Post by: Mad on August 30, 2013, 07:59:43 pm
Hello all!

After the great feedback coding a particle system (see http://en.sfml-dev.org/forums/index.php?topic=12788.0 (http://en.sfml-dev.org/forums/index.php?topic=12788.0) ), I have now another question.

Coding makes fun, but it's not neccessary to build the wheel again and again, if someone has a good solution.  :D

So, i need a mapsystem for 2d map tiles. There are several examples out there, but I want to use an existing Map Tile Editor (with multi layers).
Perhaps an editor like iTile: http://tide.codeplex.com/ (http://tide.codeplex.com/)
or Tiled http://www.mapeditor.org/ (http://www.mapeditor.org/)
Has anybody an existing solution for this and want's to share it?  :D
Title: Re: Map and Map Editor
Post by: Mister on August 31, 2013, 07:10:36 am
Use Tiled!  ;D

I've used it a lot with XNA and it truly works wonders. Importing the map from the XML file isn't too bad (there should be plenty of importers out there for this) -- I made my own for a school project but it was a little sketchy.

I'll take a look on google and see if I can stumble across anything that can help you out.
Title: Re: Map and Map Editor
Post by: Mad on August 31, 2013, 07:53:26 am
I found some classes for Tiled, but all seems to be rather old.
They are no more working with the latest Tiled version.  :-\

Tiled XML format definition is a little bit incomplete and the given DTD file (hell, yeah! Great!) is 'This file is not up-to-date but might be useful for XML-namespacing anyway.' (hell, nononoooooo!).

it's a pity  :o
Title: Re: Map and Map Editor
Post by: Mad on September 06, 2013, 03:34:27 pm
I found a working solution.  :)

If someone else is looking for a mapreader reading maps from the Tiled editor ( http://www.mapeditor.org/ (http://www.mapeditor.org/) )
grab it here: https://github.com/marshallward/TiledSharp (https://github.com/marshallward/TiledSharp)
Title: Re: Map and Map Editor
Post by: marshall on September 12, 2013, 04:44:00 am
Cool, glad to see someone is using this (c/o google 8)). I've also been thinking of making a generic XNA/MonoGame renderer to go along with it.
Let me know if you have any problems, or use it in any projects.
Title: Re: Map and Map Editor
Post by: Mad on September 13, 2013, 09:27:42 pm
Cool, glad to see someone is using this (c/o google 8)). I've also been thinking of making a generic XNA/MonoGame renderer to go along with it.
Let me know if you have any problems, or use it in any projects.

Ha, Marshall. You got me!  8)
Ist a very good lib! Thank for sharing it.
If wrote a little map render for the basics in C#/sfml. Still now :)
Thank you for your feedback!

cheers,
Mad