ch32_oled/soweli/data.h

80 lines
1.1 KiB
C
Raw Normal View History

2024-04-07 18:59:30 +02:00
#define OBSTACLE_TYPES 5
const unsigned char soweli_a[8] = {
0b01111111,
0b10000000,
0b10101000,
0b10101000,
0b10000000,
0b01010101,
0b01010000,
0b01010000,
};
const unsigned char soweli_b[8] = {
0b01111111,
0b10000000,
0b10101000,
0b10101000,
0b10000000,
0b01010101,
0b00000101,
0b00000101,
};
const unsigned char 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,
},
};
const unsigned char obstacle_heights[OBSTACLE_TYPES] = {6, 4, 4, 8, 5};
const unsigned char obstacle_widths[OBSTACLE_TYPES] = {8, 8, 8, 7, 5};