ch32_oled/soweli/data.h

105 lines
1.6 KiB
C

const u16 digit_font[] = {
0b111101101101111, // 0
0b010110010010111, // 1
0b111001111100111, // 2
0b111001111001111, // 3
0b101101111001001, // 4
0b111100111001111, // 5
0b111100111101111, // 6
0b111001001001001, // 7
0b111101111101111, // 8
0b111101111001111, // 9
};
const u8 soweli_a[8] = {
0b01111111,
0b10000000,
0b10101000,
0b10101000,
0b10000000,
0b01010101,
0b01010000,
0b01010000,
};
const u8 soweli_b[8] = {
0b01111111,
0b10000000,
0b10101000,
0b10101000,
0b10000000,
0b01010101,
0b00000101,
0b00000101,
};
#define GROUND_OBSTACLE_TYPES 5
#define OBSTACLE_TYPES (GROUND_OBSTACLE_TYPES + 1)
const u8 obstacle_heights[OBSTACLE_TYPES] = {6, 4, 4, 8, 5, 8};
const u8 obstacle_widths[OBSTACLE_TYPES] = {8, 8, 8, 7, 5, 7}; // (width + 8 )/2
const u8 obstacle_y_offset[OBSTACLE_TYPES] = {0, 0, 0, 0, 0, 18};
const u8 obstacle_sprites[OBSTACLE_TYPES][8] = {
{
0b00000000,
0b00000000,
0b01010101,
0b01010100,
0b11111110,
0b01010100,
0b01010101,
0b00000000,
},
{
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00111100,
0b01100110,
0b11000011,
0b10000001,
},
{
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b11111111,
0b01000010,
0b01000010,
0b01000010,
},
{
0b01000010,
0b00011000,
0b00100100,
0b01111110,
0b00100100,
0b01111110,
0b00100100,
0b00011000,
},
{
0b00000000,
0b00000000,
0b00000000,
0b00011000,
0b00011000,
0b00011000,
0b00011000,
0b00111100,
},
{
0b00100000,
0b00010000,
0b00001000,
0b01010100,
0b00000010,
0b00011110,
0b00010000,
0b00010000,
},
};