Tilemap editors

flash · 9315

Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
on: December 27, 2008, 06:49:13 pm
Does anyone have any idea what is a good tilemap editor that can export for use in DS asm?

I have looked at loads and the best looking appears to be Pixtile, though in the demo there is no way to know what formats can be output (rather silly)

Coding for the love of it!


Offline flash

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 13180
Reply #1 on: December 27, 2008, 09:48:22 pm
Mappy is about the best I can find

Coding for the love of it!


Offline headkaze

  • Administrator
  • Blue Gene Super Computer
  • **********
    • Posts: 7838
Reply #2 on: December 28, 2008, 01:21:40 am
Just use the "grit" tool included in DevKitPro (located in C:\devkitPro\devkitARM\bin) ;)

In the DevKitPro tile example (C:\devkitPro\examples\nds\Graphics\2D\BackgroundAllInOne) they use Pern Edit. I think when it comes to combining tiles from multiple maps it can get a bit more tricky. But I'm pretty sure grit can do it anyway. So I say we just use grit for now and figure out how to combine multiple tiles/maps and palettes later.

To create a simple map create a png that is made up of 8x8 tiles Eg. level1.png and a level1.grit containing the following

Code: [Select]
#-------------------------------------------------------
# graphics in tile format
#-------------------------------------------------------
-gt

#-------------------------------------------------------
# tile reduction
#-------------------------------------------------------
-mR

#-------------------------------------------------------
# map output
#-------------------------------------------------------
-m

#-------------------------------------------------------
# graphics bit depth is 4 (16 color)
#-------------------------------------------------------
-gB4

Grit will create the map data and automatically detect repeated, rotated and mirrored tiles and create the map accordingly.

Here are the full options for grit
« Last Edit: December 31, 2008, 12:46:49 am by headkaze »