GLBasic forum

Main forum => GLBasic - en => Topic started by: Alex_R on 2010-Aug-03

Title: Tiled Map Editor
Post by: Alex_R 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!!
Title: Re: Tiled Map Editor
Post by: ketil 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.

Title: Re: Tiled Map Editor
Post by: Alex_R 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
Title: Re: Tiled Map Editor
Post by: ketil 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
Title: Re: Tiled Map Editor
Post by: ketil on 2010-Aug-04
Heyyy ... It can also be done in FreeBASIC :)

http://www.freebasic.net/forum/viewtopic.php?t=7437
Title: Re: Tiled Map Editor
Post by: Alex_R on 2010-Aug-04
Quote from: ketil 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!!
Title: Re: Tiled Map Editor
Post by: Hark0 on 2010-Aug-05
For make maps and tiles the best solution are Tile Studio.

http://tilestudio.sourceforge.net/

Works perfect!!!

;)
Title: Re: Tiled Map Editor
Post by: ketil 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.
Title: Re: Tiled Map Editor
Post by: matchy on 2010-Aug-05
Moru's Mappy Tilemap Loader for GLB  :nw:
http://gamecorner.110mb.com/index.php?page=tilemap-loader

Mappy  :good:
http://tilemap.co.uk/mappy.php
Title: Re: Tiled Map Editor
Post by: Hark0 on 2010-Aug-05
Quote from: ketil 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
Title: Re: Tiled Map Editor
Post by: MrTAToad on 2010-Aug-05
I also did a tilemap loader too : http://www.un-map.com/code.html
Title: Re: Tiled Map Editor
Post by: ketil 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/