Author Topic: Tiled Map Editor  (Read 5335 times)

Offline Alex_R

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
    • Axro Digital
Tiled Map Editor
« on: 2010-Aug-03 »
Hi!! I'm very new at this forum and in GLBasic development. I'm interested in a iPhone game. An RPG with 20 or more huge tiled maps. The game will be in 2D with a scroll system. My question is simple. How do yoy construct a tiled map? Inside the main code or in externals files? Is there any tiled editor that works with glbasic? In XML perhaps like http://www.mapeditor.org/?

Thanks!!

Offline ketil

  • Mr. Polyvector
  • ***
  • Posts: 117
    • View Profile
Re: Tiled Map Editor
« Reply #1 on: 2010-Aug-03 »
Ahhh Tiled :) I use this editor.

Once you got the hang of it (and understand the layer and object system), it's superb.
You have two types of layers. Tile Layers and object layers (used to define walkable areas, animations and whatever you want).
Each object layer can have as many global and pr. object properties you want, so it's extreme flexible when it comes to adapting the maps to special features in your tile-engine.
Each tile might also have as many properties as you want.

It's in QT with source code included, and as stated, it export to xml.

I convert the exported map into my tile-engines format with a small QT app I wrote.

I see that several of the users here use Mappy, which i personally think is crap (but yoy don't have many alternatives).

TileEd is absolutely unbeatable in my opinion.

I't might look simple at first sight, but all those possibilities ... :)

I would reccomend writing a middleware tool that can link together your tileproperites with your engine by generating som struct's (types) and som basic-code.

"Sugar makes the world go 'round. Caffeine makes it spin faster."

Offline Alex_R

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
    • Axro Digital
Re: Tiled Map Editor
« Reply #2 on: 2010-Aug-04 »
Thanks ketil for your replay. So I suppose that I have to write my own code to read the tiled map in XML format. If anyone has experience in this matter or there is one tutorial, help will be appreciated.  =D

Offline ketil

  • Mr. Polyvector
  • ***
  • Posts: 117
    • View Profile
Re: Tiled Map Editor
« Reply #3 on: 2010-Aug-04 »
It seem so.

The easiest way to convert a map into your own format would as far as I know be to do it with c++ (if you know c++) or Java.
Tiled is written in C++ with the QT Creator and of course the QT libraries.
QT has an XML library, which makes such an app very easy
"Sugar makes the world go 'round. Caffeine makes it spin faster."

Offline ketil

  • Mr. Polyvector
  • ***
  • Posts: 117
    • View Profile
Re: Tiled Map Editor
« Reply #4 on: 2010-Aug-04 »
Heyyy ... It can also be done in FreeBASIC :)

http://www.freebasic.net/forum/viewtopic.php?t=7437
"Sugar makes the world go 'round. Caffeine makes it spin faster."

Offline Alex_R

  • Mr. Polyvector
  • ***
  • Posts: 238
    • View Profile
    • Axro Digital
Re: Tiled Map Editor
« Reply #5 on: 2010-Aug-04 »
Heyyy ... It can also be done in FreeBASIC :)

http://www.freebasic.net/forum/viewtopic.php?t=7437

Wow!! Great!! Thanks again!!

Offline Hark0

  • Prof. Inline
  • *****
  • Posts: 1020
  • Geek Developer
    • View Profile
    • LitioPixel - Desarrollo de videojuegos con GLBasic | Videogame development with GLBasic
Re: Tiled Map Editor
« Reply #6 on: 2010-Aug-05 »
For make maps and tiles the best solution are Tile Studio.

http://tilestudio.sourceforge.net/

Works perfect!!!

 ;)
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

Offline ketil

  • Mr. Polyvector
  • ***
  • Posts: 117
    • View Profile
Re: Tiled Map Editor
« Reply #7 on: 2010-Aug-05 »
Tile Studio is also VERY good.
I used to use it before, but it lacks the possibility to set properties of tiles and objects.
It's andvantage is that it export to whatever you define it to.
It's workflow is (for me) a bit slower than Tiled.
"Sugar makes the world go 'round. Caffeine makes it spin faster."

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1545
    • View Profile
Re: Tiled Map Editor
« Reply #8 on: 2010-Aug-05 »

Offline Hark0

  • Prof. Inline
  • *****
  • Posts: 1020
  • Geek Developer
    • View Profile
    • LitioPixel - Desarrollo de videojuegos con GLBasic | Videogame development with GLBasic
Re: Tiled Map Editor
« Reply #9 on: 2010-Aug-05 »
...but it lacks the possibility to set properties of tiles and objects...

Yes! It's true. For this reason I currently working on my own map editor for my game.
 =D
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

MrTAToad

  • Guest
Re: Tiled Map Editor
« Reply #10 on: 2010-Aug-05 »
I also did a tilemap loader too : http://www.un-map.com/code.html
« Last Edit: 2010-Aug-05 by MrTAToad »

Offline ketil

  • Mr. Polyvector
  • ***
  • Posts: 117
    • View Profile
Re: Tiled Map Editor
« Reply #11 on: 2010-Aug-07 »
Universal Map Editor

I just found this one today. Seems like a very good one  :good:

http://www.mapeditor.de.vu/
"Sugar makes the world go 'round. Caffeine makes it spin faster."