Graphics manipulation with grit! - Shiny-Miner/CFRU-expansion GitHub Wiki
You can find all Grit commands here
the gritflags.txt give instructions of how a image should be compiled by the engine. I recommend you to see Grit website above and take a look at all Grit commands before proceeding, Here i'll just highlight the most important commands. Note that the Grit commands are separated by whitespace.
-g - Use this command if you want the engine to generate a tileset in output. If you dont want, use -g!.
-gB - Determines the bit depth of the image. If the image have 16 colors, use -gB4. If the image have 256 colors, use -gB8.
-gu8 - This is a required command! you must always include it in your gritflags.
-gzl - Use this command if the tileset is compressed. If the tileset isnt compressed, use -gz!.
-m - Use this command if you want the engine to generate a tilemap in output. If you dont want, use -m!.
-mR - Enable tiles reduction. if the image have 16 colors, use -mR4. if the image have 256 colors, use -mR8.
mu8 - This is a required command! you must always include it in your gritflags.
-mzl - Use this command if the tilemap is compressed. If the tilemap isnt compressed, use -mz!.
-p - Use this command if you want the engine to generate a palette in output. If you dont want, use -p!.
-pu - Use -pu16 if the palette isnt compressed. If the palette is compressed, use -pu8.
-pzl - Use this command if the palette is compressed. If the palette isnt compressed, use -pz!.
-fh - This is a required command! you must always include it in your gritflags.
-fts - This is a required command! you must always include it in your gritflags.
The following gritflags is used in a image with compressed tilemap, compressed tileset and compressed 16 colors palette:
-g -gB4 -gu8 -gzl -m -mR4 -mu8 -mzl -p -pu8 -pzl -fh -fts