Tiled Map Editor

Previous topic - Next topic

Alex_R

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!!

ketil

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."

Alex_R

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

ketil

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."

ketil

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

Alex_R

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!!

Hark0

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

ketil

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."

matchy


Hark0

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
http://litiopixel.blogspot.com
litiopixel.blogspot.com - Desarrollo videojuegos Indie · Pixel-Art · Retroinformática · Electrónica Development Indie Videogames · Pixel-Art · Retrocomputing · Electronic

MrTAToad

#10
I also did a tilemap loader too : http://www.un-map.com/code.html

ketil

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."