417
edits
(Added images of the Busy and Pointer -files (2007-07-07).) |
(Added info on done work on 2007-07-09.) |
||
Line 591: | Line 591: | ||
[[Image:Amiga-AGI-Busy-Cropped.png|frame|none|Busy -mouse cursor]] | [[Image:Amiga-AGI-Busy-Cropped.png|frame|none|Busy -mouse cursor]] | ||
[[Image:Amiga-AGI-Pointer-Cropped.png|frame|none|Pointer -mouse cursor]] | [[Image:Amiga-AGI-Pointer-Cropped.png|frame|none|Pointer -mouse cursor]] | ||
== 2007-07-09 (Monday) - Amiga AGI game palette extracting == | |||
Today I made a command line tool for detecting and extracting | |||
Amiga AGI game palettes. You can make it print out a C-array | |||
of the 16-color 12-bit RGB palette if its found. Removes | |||
duplicate palettes too (Found in some file I tried). | |||
Here's the format of the Amiga AGI games' palettes: | |||
* The palette consists of 16 colors. | |||
* Each color consists of red, green and blue components (In this order). | |||
* Each component is a 16-bit big endian word in range 0-15 (i.e. 4 bits). | |||
The palette should be found in the game's executable file. | |||
I use the following heuristic for detecting a possible palette from a file: | |||
* First color must be black i.e. R = G = B = 0 | |||
* Last color must be white i.e. R = G = B = 0x0F | |||
* All components of all colors must be in range 0-15 | |||
* No other black color must exist in the palette than the first color | |||
** Added to help weed out some false positives |
edits