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-08-01 16:29:50 +00:00
|
|
|
/* Char 67 is 8px wide @ 23 */
|
2011-07-05 13:25:54 +00:00
|
|
|
0x58, /* * ** */
|
|
|
|
0xbc, /* * **** */
|
|
|
|
0x16, /* * ** */
|
|
|
|
0x3f, /* ****** */
|
|
|
|
0x3f, /* ****** */
|
2011-08-01 16:29:50 +00:00
|
|
|
0x16, /* * ** */
|
|
|
|
0xbc, /* * **** */
|
|
|
|
0x58, /* * ** */
|
2011-07-05 13:25:54 +00:00
|
|
|
|
|
|
|
|
2011-08-01 18:03:12 +00:00
|
|
|
/* Char 80 is 7px wide @ 31 */
|
2011-07-17 15:14:06 +00:00
|
|
|
0xc0, /* ** */
|
|
|
|
0xec, /* *** ** */
|
|
|
|
0x7e, /* ****** */
|
|
|
|
0x3f, /* ****** */
|
|
|
|
0x7e, /* ****** */
|
|
|
|
0xec, /* *** ** */
|
|
|
|
0xc0, /* ** */
|
|
|
|
|
|
|
|
|
2011-08-01 18:03:12 +00:00
|
|
|
/* Char 85 is 16px wide @ 38 */
|
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-08-01 18:03:12 +00:00
|
|
|
/* Char 97 is 11px wide @ 54 */
|
2011-07-05 13:25:54 +00:00
|
|
|
0x9e, /* * **** */
|
|
|
|
0x38, /* *** */
|
|
|
|
0x7d, /* ***** * */
|
|
|
|
0x36, /* ** ** */
|
|
|
|
0x3c, /* **** */
|
|
|
|
0x3c, /* **** */
|
|
|
|
0x3c, /* **** */
|
|
|
|
0x36, /* ** ** */
|
|
|
|
0x7d, /* ***** * */
|
|
|
|
0x38, /* *** */
|
|
|
|
0x9e, /* * **** */
|
|
|
|
|
|
|
|
|
2011-08-01 18:03:12 +00:00
|
|
|
/* Char 98 is 12px wide @ 65 */
|
2011-07-05 13:25:54 +00:00
|
|
|
0x1c, /* *** */
|
|
|
|
0x5e, /* * **** */
|
|
|
|
0xfe, /* ******* */
|
|
|
|
0xb6, /* * ** ** */
|
|
|
|
0x37, /* ** *** */
|
|
|
|
0x5f, /* * ***** */
|
|
|
|
0x5f, /* * ***** */
|
|
|
|
0x37, /* ** *** */
|
|
|
|
0xb6, /* * ** ** */
|
|
|
|
0xfe, /* ******* */
|
|
|
|
0x5e, /* * **** */
|
|
|
|
0x1c, /* *** */
|
|
|
|
|
|
|
|
|
2011-08-01 18:03:12 +00:00
|
|
|
/* Char 99 is 8px wide @ 77 */
|
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 */
|
2011-08-01 16:29:50 +00:00
|
|
|
{ 8}, /* C */
|
2011-07-17 15:14:06 +00:00
|
|
|
{ 7}, /* P */
|
2011-07-17 15:08:41 +00:00
|
|
|
{16}, /* U */
|
|
|
|
{11}, /* a */
|
|
|
|
{12}, /* b */
|
|
|
|
{ 8}, /* c */
|
2011-07-05 13:25:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const uint16_t InvadersExtra[] = {
|
2011-07-17 15:14:06 +00:00
|
|
|
80,85,97,98,99,65535
|
2011-07-05 13:25:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* 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-08-01 18:03:12 +00:00
|
|
|
* Storage size: 93 bytes (uncompressed)
|
2011-07-05 13:25:54 +00:00
|
|
|
*/
|