Optimize map rendering and implement dynamic fog of war
This commit is contained in:
@@ -18,7 +18,7 @@ const palette_color_t tiles_palettes[32] = {
|
||||
RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0), RGB8( 0, 0, 0)
|
||||
};
|
||||
|
||||
const uint8_t tiles_tiles[528] = {
|
||||
const uint8_t tiles_tiles[1040] = {
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xf8,0xfe,0xe0,0xf8,0x80,0xe3,
|
||||
0xfe,0xff,0xf8,0xfe,0xe0,0xf8,0x80,0xe0,0x00,0x83,0x03,0x1c,0x1f,0x60,0x7f,0x80,
|
||||
@@ -51,11 +51,43 @@ const uint8_t tiles_tiles[528] = {
|
||||
0x30,0xce,0x0e,0x31,0x03,0x0c,0x00,0x03,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0x00,0x00,0x00,0xe0,0xe0,0x1e,0x7e,0x81,0x1f,0x60,0x07,0x18,0x01,0x06,0x00,0x01,
|
||||
0x00,0x01,0x01,0x06,0x07,0x38,0x3e,0xc1,0xf8,0x06,0xe0,0x18,0x80,0x60,0x00,0x80,
|
||||
0x38,0xc6,0xe0,0x18,0x80,0x60,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
|
||||
0x38,0xc6,0xe0,0x18,0x80,0x60,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xf8,0xff,0xe3,
|
||||
0xff,0xff,0xff,0xfe,0xff,0xf8,0xff,0xe0,0xff,0x83,0xfc,0x1f,0xe0,0x7f,0x80,0xff,
|
||||
0xff,0xff,0xff,0x7f,0xff,0x1f,0xff,0x07,0xff,0x81,0x7f,0xf8,0x07,0xff,0x00,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0xff,0x8f,0x7f,0xf3,
|
||||
0xfe,0xcf,0xff,0xf1,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0x00,0xff,0xe0,0xff,0xfe,0x1f,0xff,0x81,0xff,0xe0,0xff,0xf8,0xff,0xfe,0xff,0xff,
|
||||
0x01,0xff,0x07,0xfe,0x3f,0xf8,0xff,0xc1,0xff,0x07,0xff,0x1f,0xff,0x7f,0xff,0xff,
|
||||
0xff,0xc7,0xff,0x1f,0xff,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x01,0xff,0x07,0xfe,0x1f,0xf8,0x7f,0xe3,
|
||||
0x01,0xff,0x07,0xfe,0x1f,0xf8,0x7f,0xe0,0xff,0x83,0xfc,0x1f,0xe0,0x7f,0x80,0xff,
|
||||
0x80,0xff,0xe0,0x7f,0xf8,0x1f,0xfe,0x07,0xff,0x81,0x7f,0xf8,0x07,0xff,0x00,0xff,
|
||||
0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0xc0,0xff,0xf0,0x3f,0xfc,0x8f,0x7f,0xf3,
|
||||
0xfe,0xcf,0x3f,0xf1,0x0f,0xfc,0x03,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
|
||||
0x00,0xff,0xe0,0xff,0xfe,0x1f,0xff,0x81,0x7f,0xe0,0x1f,0xf8,0x07,0xfe,0x01,0xff,
|
||||
0x01,0xff,0x07,0xfe,0x3f,0xf8,0xff,0xc1,0xfe,0x07,0xf8,0x1f,0xe0,0x7f,0x80,0xff,
|
||||
0xfe,0xc7,0xf8,0x1f,0xe0,0x7f,0x80,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xff,0xf8,0xff,0xe3,0xff,
|
||||
0xff,0xff,0xfe,0xff,0xf8,0xff,0xe0,0xff,0x83,0xff,0x1f,0xfc,0x7f,0xe0,0xff,0x80,
|
||||
0xff,0xff,0x7f,0xff,0x1f,0xff,0x07,0xff,0x81,0xff,0xf8,0x7f,0xff,0x07,0xff,0x00,
|
||||
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x3f,0xff,0x8f,0xff,0xf3,0x7f,
|
||||
0xcf,0xfe,0xf1,0xff,0xfc,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0x00,0xff,0xe0,0x1f,0xfe,0x81,0xff,0xe0,0xff,0xf8,0xff,0xfe,0xff,0xff,0xff,
|
||||
0xff,0x01,0xfe,0x07,0xf8,0x3f,0xc1,0xff,0x07,0xff,0x1f,0xff,0x7f,0xff,0xff,0xff,
|
||||
0xc7,0xff,0x1f,0xff,0x7f,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
|
||||
0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x01,0xfe,0x07,0xf8,0x1f,0xe3,0x7f,
|
||||
0xff,0x01,0xfe,0x07,0xf8,0x1f,0xe0,0x7f,0x83,0xff,0x1f,0xfc,0x7f,0xe0,0xff,0x80,
|
||||
0xff,0x80,0x7f,0xe0,0x1f,0xf8,0x07,0xfe,0x81,0xff,0xf8,0x7f,0xff,0x07,0xff,0x00,
|
||||
0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0xc0,0x3f,0xf0,0x8f,0xfc,0xf3,0x7f,
|
||||
0xcf,0xfe,0xf1,0x3f,0xfc,0x0f,0xff,0x03,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00,
|
||||
0xff,0x00,0xff,0xe0,0x1f,0xfe,0x81,0xff,0xe0,0x7f,0xf8,0x1f,0xfe,0x07,0xff,0x01,
|
||||
0xff,0x01,0xfe,0x07,0xf8,0x3f,0xc1,0xff,0x07,0xfe,0x1f,0xf8,0x7f,0xe0,0xff,0x80,
|
||||
0xc7,0xfe,0x1f,0xf8,0x7f,0xe0,0xff,0x80,0xff,0x00,0xff,0x00,0xff,0x00,0xff,0x00
|
||||
};
|
||||
|
||||
|
||||
const unsigned char tiles_map[260] = {
|
||||
const unsigned char tiles_map[516] = {
|
||||
0x00,0x00,0x00,0x00,
|
||||
0x01,0x02,0x03,0x04,
|
||||
0x05,0x06,0x07,0x08,
|
||||
@@ -121,4 +153,68 @@ const unsigned char tiles_map[260] = {
|
||||
0x1d,0x1e,0x1f,0x20,
|
||||
0x19,0x1a,0x1b,0x1c,
|
||||
0x1d,0x1e,0x1f,0x20,
|
||||
0x21,0x22,0x23,0x24,
|
||||
0x25,0x26,0x27,0x28,
|
||||
0x29,0x2a,0x23,0x24,
|
||||
0x25,0x26,0x27,0x28,
|
||||
0x21,0x22,0x2b,0x2c,
|
||||
0x25,0x26,0x27,0x28,
|
||||
0x29,0x2a,0x2b,0x2c,
|
||||
0x25,0x26,0x27,0x28,
|
||||
0x21,0x22,0x23,0x24,
|
||||
0x2d,0x2e,0x27,0x28,
|
||||
0x29,0x2a,0x23,0x24,
|
||||
0x2d,0x2e,0x27,0x28,
|
||||
0x21,0x22,0x2b,0x2c,
|
||||
0x2d,0x2e,0x27,0x28,
|
||||
0x29,0x2a,0x2b,0x2c,
|
||||
0x2d,0x2e,0x27,0x28,
|
||||
0x21,0x22,0x23,0x24,
|
||||
0x25,0x26,0x2f,0x30,
|
||||
0x29,0x2a,0x23,0x24,
|
||||
0x25,0x26,0x2f,0x30,
|
||||
0x21,0x22,0x2b,0x2c,
|
||||
0x25,0x26,0x2f,0x30,
|
||||
0x29,0x2a,0x2b,0x2c,
|
||||
0x25,0x26,0x2f,0x30,
|
||||
0x21,0x22,0x23,0x24,
|
||||
0x2d,0x2e,0x2f,0x30,
|
||||
0x29,0x2a,0x23,0x24,
|
||||
0x2d,0x2e,0x2f,0x30,
|
||||
0x21,0x22,0x2b,0x2c,
|
||||
0x2d,0x2e,0x2f,0x30,
|
||||
0x29,0x2a,0x2b,0x2c,
|
||||
0x2d,0x2e,0x2f,0x30,
|
||||
0x31,0x32,0x33,0x34,
|
||||
0x35,0x36,0x37,0x38,
|
||||
0x39,0x3a,0x33,0x34,
|
||||
0x35,0x36,0x37,0x38,
|
||||
0x31,0x32,0x3b,0x3c,
|
||||
0x35,0x36,0x37,0x38,
|
||||
0x39,0x3a,0x3b,0x3c,
|
||||
0x35,0x36,0x37,0x38,
|
||||
0x31,0x32,0x33,0x34,
|
||||
0x3d,0x3e,0x37,0x38,
|
||||
0x39,0x3a,0x33,0x34,
|
||||
0x3d,0x3e,0x37,0x38,
|
||||
0x31,0x32,0x3b,0x3c,
|
||||
0x3d,0x3e,0x37,0x38,
|
||||
0x39,0x3a,0x3b,0x3c,
|
||||
0x3d,0x3e,0x37,0x38,
|
||||
0x31,0x32,0x33,0x34,
|
||||
0x35,0x36,0x3f,0x40,
|
||||
0x39,0x3a,0x33,0x34,
|
||||
0x35,0x36,0x3f,0x40,
|
||||
0x31,0x32,0x3b,0x3c,
|
||||
0x35,0x36,0x3f,0x40,
|
||||
0x39,0x3a,0x3b,0x3c,
|
||||
0x35,0x36,0x3f,0x40,
|
||||
0x31,0x32,0x33,0x34,
|
||||
0x3d,0x3e,0x3f,0x40,
|
||||
0x39,0x3a,0x33,0x34,
|
||||
0x3d,0x3e,0x3f,0x40,
|
||||
0x31,0x32,0x3b,0x3c,
|
||||
0x3d,0x3e,0x3f,0x40,
|
||||
0x39,0x3a,0x3b,0x3c,
|
||||
0x3d,0x3e,0x3f,0x40,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user