Add potato mode

This commit is contained in:
Miloslav Ciz 2024-12-18 18:40:03 +01:00
parent 5d9038021a
commit e42212d7c1
4 changed files with 95 additions and 7 deletions

View file

@ -36,8 +36,8 @@ static const char *LCR_maps[] =
"#;p0w0L #f5130" // bugs
"#=f0s0 #fd110" // small labyrinth
"#=c0p0 #fd110"
"#>f0s0 #fd110" // small labyrinth
"#oc0p0 #fd110"
"#=f0s0 #f11d0"
"#=c0p0 #f11d0"
@ -153,6 +153,7 @@ uint16_t LCR_getFontChar(char c)
#define LCR_IMAGE_GROUND_FAN 7
#define LCR_IMAGE_CAR 20
#if !LCR_SETTING_POTATO_GRAPHICS
static const uint8_t LCR_images[] =
{
// 0: wall concrete
@ -2178,7 +2179,7 @@ static const uint8_t LCR_images[] =
0xe6,0xed,0xf1,0xfc,0xae,0xfa,0x89,0xf7,0x6b,0xc2,0xc2,0xe9,0xee,0xa7,0xa7,0xb5,
0xb5,0xb5,0xa7,0xa7,0xf9,0xee,0xf9,0xe9,0xf7,0x89,0xf6,0xae,0xd2,0xf1,0xff,0xe6,
0xff,0xfe,0xfd,0xed,0xfb,0xed,0xf1,0xf8,0xeb,0xf6,0xf5,0xf4,0xf3,0xf2,0xed,0xf0,
// 7: ground sticker
// 7: ground fan
0x2c,0x63,0x4d,0x6b,0x08,0x42,0x00,0x00,0x08,0x00,0x10,0x00,0x18,0x00,0x00,0x01,
0x08,0x01,0x10,0x01,0x18,0x01,0x00,0x02,0x08,0x02,0x10,0x02,0x18,0x02,0x00,0x03,
0x08,0x03,0x10,0x03,0x18,0x03,0x00,0x04,0x08,0x04,0x10,0x04,0x18,0x04,0x00,0x05,
@ -6225,9 +6226,11 @@ static const uint8_t LCR_images[] =
0x15,0x15,0x15,0x15,0x15,0x15,0x15,0xa5,0xf7,0xcd,0xcd,0xcd,0xcd,0xcd,0xcd,0xfb,
0x00,0xec,0xb6,0xb6,0xce,0x00,0xa5,0xa5,0x00,0x00,0xec,0xa5,0x01,0xcc,0xc1,0xc1
};
#endif // LCR_SETTING_POTATO_GRAPHICS
void LCR_loadImage(unsigned int index)
{
#if !LCR_SETTING_POTATO_GRAPHICS
LCR_currentImage.image = LCR_images + index * LCR_IMAGE_STORE_SIZE;
for (int i = 0; i < 256; ++i)
@ -6239,6 +6242,7 @@ void LCR_loadImage(unsigned int index)
}
LCR_currentImage.pixel = LCR_currentImage.image;
#endif
}
/**