FANT.PCK - ateska/warlords GitHub Wiki
The file PICTS/FANT.PCK contains a bitmap font used in the game.
- Character Sprite Size: Each character sprite is 16 pixels wide by 18 pixels tall.
- Variable Width: Although the sprite dimensions are fixed, the actual character width is variable. The width is determined by locating the rightmost non-transparent pixel within the character’s 16×18 sprite.
- Character Set: The font uses the standard ASCII character set, starting at code point 32 (' ', space) and ending at 127 (total of 96 characters).
- Sprite Layout: Characters are arranged in a grid of 16 columns and 6 rows.
Convert to PNG
The transparent color index is 3.
% python3 pck/warlords-pck.py -S .../game/PICTS/FANT.PCK -t 3 -o FANT.PNG