RetroBytes Portal

Programming => Gameboy Advance & Nintendo DS Coding => Topic started by: headkaze on February 25, 2009, 12:01:45 pm

Title: Grit Update (palette numbers & ASM header output)
Post by: headkaze on February 25, 2009, 12:01:45 pm
This version of grit adds an option (-mp) which allows you to specifiy the palette number for map's. This is handy if your using 16 color tiles and need to share a palette and the palette isn't at entry 0.

Just copy the files over C:\devkitPro\devkitARM\bin

To use palette 15 for example add the following to your grit file

Code: [Select]
-mp15
Thanks for Jasper for the help getting grit to compile.
Title: Re: grit update to support palette numbers in maps
Post by: headkaze on March 06, 2009, 02:21:10 am
Another grit update that adds a command line option called "-fha" which means to output the header file in assembly format. So instead of having to copy and paste lines like

Code: [Select]
#define Level1TilesLen 49152
We can add the following line to the top of warhawk.h and the "-fha" option to all of our .grit files

Code: [Select]
#include "..\build\Level1.h"
Now we don't need to update the #define's in warhawk.h
Title: Re: grit update to support palette numbers in maps
Post by: flash on March 06, 2009, 07:11:41 am
Welldone mate, that will certainly make things easier.