gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Creating maps and tilesets with Grit

#173740 - jclary - Tue Apr 27, 2010 8:14 am

I believe this is an easy question, I'm just not sure what the answer is. Let's say I have a tileset, myTileset.bmp, and an image I have created using that tileset, myimage.bmp. Is there some sequence of commands I can give to grit to generate, from those two bitmaps, binary files for the Map, Tileset, and Palette?

Even better, if I have multiple images, myImage1.bmp, myImage2.bmp, myImage3.bmp, and a tileset, myTileset.bmp, how can I convert those to a series of binary files with a single tileset and palette?

Further info: I have tried using the following( provided by Coranac )

Code:

GRIT      := grit.exe
BMPS   := a1.bmp a2.bmp a3.bmp
TILESET   := tiles.bmp

tilemap.s : $(BMPS)
   $(GRIT) $^ -o $@ -fa -fx $(TILESET) -p! -g! -mR8
   $(GRIT) $(TILESET) -o tileset.s



Doesn't seem to generate a full map, tileset, and palette ( missing palette ). Adding the -ftb option only makes it worse. I'm sure if I fiddled with it long enough I'd find a solution, but I'm hoping someone already knows the general solution so I don't have to try random combinations ad nauseum.

Thanks!