2011-07-05 13:25:54 +00:00
|
|
|
#include "invaders.h"
|
|
|
|
|
|
|
|
/* Font data for Invaders */
|
|
|
|
|
|
|
|
/* Space Invaders Pixel Art
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* This file created by makefont.pl by Sec <sec@42.org> */
|
|
|
|
|
|
|
|
/* Bitmaps */
|
|
|
|
const uint8_t InvadersBitmaps[] = {
|
|
|
|
/* Char 65 is 11px wide @ 0 */
|
|
|
|
0x70, /* *** */
|
|
|
|
0x18, /* ** */
|
|
|
|
0x7d, /* ***** * */
|
|
|
|
0xb6, /* * ** ** */
|
|
|
|
0xbc, /* * **** */
|
|
|
|
0x3c, /* **** */
|
|
|
|
0xbc, /* * **** */
|
|
|
|
0xb6, /* * ** ** */
|
|
|
|
0x7d, /* ***** * */
|
|
|
|
0x18, /* ** */
|
|
|
|
0x70, /* *** */
|
|
|
|
|
|
|
|
|
2011-07-17 15:08:41 +00:00
|
|
|
/* Char 66 is 12px wide @ 11 */
|
2011-07-05 13:25:54 +00:00
|
|
|
0x9c, /* * *** */
|
|
|
|
0x9e, /* * **** */
|
|
|
|
0x5e, /* * **** */
|
|
|
|
0x76, /* *** ** */
|
|
|
|
0x37, /* ** *** */
|
|
|
|
0x5f, /* * ***** */
|
|
|
|
0x5f, /* * ***** */
|
|
|
|
0x37, /* ** *** */
|
|
|
|
0x76, /* *** ** */
|
|
|
|
0x5e, /* * **** */
|
|
|
|
0x9e, /* * **** */
|
|
|
|
0x9c, /* * *** */
|
|
|
|
|
|
|
|
|
2011-07-17 15:08:41 +00:00
|
|
|
/* Char 67 is 9px wide @ 23 */
|
2011-07-05 13:25:54 +00:00
|
|
|
0x58, /* * ** */
|
|
|
|
0xbc, /* * **** */
|
|
|
|
0x16, /* * ** */
|
|
|
|
0x3f, /* ****** */
|
|
|
|
0x3f, /* ****** */
|
|
|
|
0x36, /* ** ** */
|
|
|
|
0x1c, /* *** */
|
|
|
|
0xb8, /* * *** */
|
2011-07-05 13:48:26 +00:00
|
|
|
0x40, /* * */
|
2011-07-05 13:25:54 +00:00
|
|
|
|
|
|
|
|
2011-07-17 15:08:41 +00:00
|
|
|
/* Char 85 is 16px wide @ 32 */
|
2011-07-05 13:25:54 +00:00
|
|
|
0x20, /* * */
|
|
|
|
0x30, /* ** */
|
|
|
|
0x78, /* **** */
|
|
|
|
0xec, /* *** ** */
|
|
|
|
0x7c, /* ***** */
|
|
|
|
0x3c, /* **** */
|
|
|
|
0x2e, /* * *** */
|
|
|
|
0x7e, /* ****** */
|
|
|
|
0x7e, /* ****** */
|
|
|
|
0x2e, /* * *** */
|
|
|
|
0x3c, /* **** */
|
|
|
|
0x7c, /* ***** */
|
|
|
|
0xec, /* *** ** */
|
|
|
|
0x78, /* **** */
|
|
|
|
0x30, /* ** */
|
|
|
|
0x20, /* * */
|
|
|
|
|
|
|
|
|
2011-07-17 15:08:41 +00:00
|
|
|
/* Char 97 is 11px wide @ 48 */
|
2011-07-05 13:25:54 +00:00
|
|
|
0x9e, /* * **** */
|
|
|
|
0x38, /* *** */
|
|
|
|
0x7d, /* ***** * */
|
|
|
|
0x36, /* ** ** */
|
|
|
|
0x3c, /* **** */
|
|
|
|
0x3c, /* **** */
|
|
|
|
0x3c, /* **** */
|
|
|
|
0x36, /* ** ** */
|
|
|
|
0x7d, /* ***** * */
|
|
|
|
0x38, /* *** */
|
|
|
|
0x9e, /* * **** */
|
|
|
|
|
|
|
|
|
2011-07-17 15:08:41 +00:00
|
|
|
/* Char 98 is 12px wide @ 59 */
|
2011-07-05 13:25:54 +00:00
|
|
|
0x1c, /* *** */
|
|
|
|
0x5e, /* * **** */
|
|
|
|
0xfe, /* ******* */
|
|
|
|
0xb6, /* * ** ** */
|
|
|
|
0x37, /* ** *** */
|
|
|
|
0x5f, /* * ***** */
|
|
|
|
0x5f, /* * ***** */
|
|
|
|
0x37, /* ** *** */
|
|
|
|
0xb6, /* * ** ** */
|
|
|
|
0xfe, /* ******* */
|
|
|
|
0x5e, /* * **** */
|
|
|
|
0x1c, /* *** */
|
|
|
|
|
|
|
|
|
2011-07-17 15:08:41 +00:00
|
|
|
/* Char 99 is 8px wide @ 71 */
|
2011-07-05 13:25:54 +00:00
|
|
|
0x98, /* * ** */
|
|
|
|
0x5c, /* * *** */
|
|
|
|
0xb6, /* * ** ** */
|
|
|
|
0x5f, /* * ***** */
|
|
|
|
0x5f, /* * ***** */
|
|
|
|
0xb6, /* * ** ** */
|
|
|
|
0x5c, /* * *** */
|
|
|
|
0x98, /* * ** */
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Character descriptors */
|
|
|
|
const FONT_CHAR_INFO InvadersLengths[] = {
|
2011-07-17 15:08:41 +00:00
|
|
|
{11}, /* A */
|
|
|
|
{12}, /* B */
|
|
|
|
{ 9}, /* C */
|
|
|
|
{16}, /* U */
|
|
|
|
{11}, /* a */
|
|
|
|
{12}, /* b */
|
|
|
|
{ 8}, /* c */
|
2011-07-05 13:25:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const uint16_t InvadersExtra[] = {
|
|
|
|
85,97,98,99,65535
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Font info */
|
|
|
|
const struct FONT_DEF Font_Invaders = {
|
2011-07-17 15:08:41 +00:00
|
|
|
0, /* width (1 == compressed) */
|
2011-07-05 13:25:54 +00:00
|
|
|
8, /* character height */
|
|
|
|
65, /* first char */
|
|
|
|
67, /* last char */
|
|
|
|
InvadersBitmaps, InvadersLengths, InvadersExtra
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Font metadata:
|
|
|
|
* Name: Invaders
|
|
|
|
* Height: 8 px (1 bytes)
|
|
|
|
* Maximum width: 16 px
|
2011-07-17 15:08:41 +00:00
|
|
|
* Storage size: 86 bytes (uncompressed)
|
2011-07-05 13:25:54 +00:00
|
|
|
*/
|