feat: add bomb fish
This commit is contained in:
parent
4b3cc98b15
commit
a3ff4f4051
|
@ -17,6 +17,11 @@ PROGMEM const unsigned char fish_life[] {
|
|||
0x7a,0xdf,0xf7,0xbf,0x7b,0x7e,0x7d,0xfc,0xde,0xf8,0x8f,0xf0,0x07,0x00,0x00,
|
||||
0x00,0x00 };
|
||||
|
||||
PROGMEM const unsigned char fish_bomb[]{
|
||||
0x00,0x00,0xc0,0x01,0xc0,0x01,0xc8,0x01,0xd0,0x05,0xe4,0x23,0xf8,0x13,0xf8,
|
||||
0x0f,0xfd,0x8f,0xfe,0x7f,0xfe,0x3f,0xfc,0x3f,0xfc,0x1f,0xf2,0x27,0xe8,0x47,
|
||||
0xc4,0x0d };
|
||||
|
||||
PROGMEM const unsigned char heart[]{
|
||||
0x1b,0x1b,0x1f,0x1f,0x0e
|
||||
};
|
|
@ -169,7 +169,7 @@ void display_game() {
|
|||
u8g2.drawXBMP(fishes[i][0], fishes[i][1], 16, 16, fish_life);
|
||||
}
|
||||
else if(fishes[i][2] == FT_BOMB){
|
||||
u8g2.drawXBMP(fishes[i][0], fishes[i][1], 16, 16, fish);
|
||||
u8g2.drawXBMP(fishes[i][0], fishes[i][1], 16, 16, fish_bomb);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#define _width 16
|
||||
#define _height 16
|
||||
static char _bits[] = {
|
||||
0x00,0x00,0xc0,0x01,0xc0,0x01,0xc8,0x01,0xd0,0x05,0xe4,0x23,0xf8,0x13,0xf8,
|
||||
0x0f,0xfd,0x8f,0xfe,0x7f,0xfe,0x3f,0xfc,0x3f,0xfc,0x1f,0xf2,0x27,0xe8,0x47,
|
||||
0xc4,0x0d };
|
Loading…
Reference in New Issue