#include "game.h" static const uint8_t palette_data_2df0[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x24,0x28,0x3C,0x28, 0x00,0x08,0x04,0x04,0x04,0x38,0x30,0x08,0x00,0x18,0x10,0x08,0x20,0x0C,0x08,0x30, 0x18,0x14,0x10,0x0C,0x1C,0x18,0x14,0x24,0x20,0x1C,0x2C,0x28,0x24,0x3C,0x38,0x34 }; static const uint8_t palette_data_2e50[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x10,0x28,0x38,0x28, 0x00,0x08,0x00,0x00,0x00,0x38,0x30,0x08,0x00,0x18,0x10,0x08,0x20,0x0C,0x08,0x30, 0x18,0x10,0x10,0x10,0x18,0x18,0x18,0x20,0x20,0x20,0x28,0x28,0x28,0x38,0x38,0x38 }; static const uint8_t palette_data_2dc0[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x28,0x34,0x3C,0x28, 0x00,0x08,0x04,0x04,0x04,0x38,0x30,0x08,0x00,0x14,0x18,0x00,0x20,0x1C,0x00,0x30, 0x28,0x08,0x14,0x0C,0x14,0x1C,0x14,0x20,0x28,0x20,0x28,0x30,0x28,0x38,0x3C,0x38 }; static const uint8_t palette_data_2d90[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x10,0x28,0x38,0x28, 0x00,0x08,0x04,0x04,0x04,0x38,0x30,0x08,0x00,0x14,0x14,0x00,0x20,0x14,0x08,0x30, 0x1C,0x34,0x20,0x14,0x04,0x08,0x1C,0x10,0x14,0x30,0x14,0x24,0x38,0x2C,0x34,0x3C }; static const uint8_t palette_data_2d00[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x10,0x28,0x38,0x28, 0x00,0x08,0x04,0x04,0x00,0x38,0x30,0x08,0x18,0x00,0x00,0x28,0x04,0x00,0x3C,0x14, 0x00,0x34,0x20,0x14,0x20,0x14,0x24,0x28,0x1C,0x3C,0x2C,0x2C,0x3C,0x34,0x38,0x3C }; static const uint8_t palette_data_2d60[] = { 0x00,0x00,0x00,0x3C,0x24,0x14,0x2C,0x0C,0x00,0x1C,0x08,0x04,0x3C,0x30,0x28,0x28, 0x00,0x08,0x04,0x04,0x04,0x3C,0x2C,0x08,0x08,0x18,0x00,0x18,0x20,0x0C,0x28,0x2C, 0x10,0x34,0x18,0x10,0x24,0x08,0x18,0x2C,0x18,0x24,0x34,0x24,0x30,0x3C,0x34,0x38 }; static const uint8_t palette_data_2ca0[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x18,0x18,0x24,0x28, 0x00,0x08,0x00,0x00,0x00,0x38,0x30,0x08,0x18,0x1C,0x2C,0x18,0x24,0x2C,0x28,0x30, 0x38,0x34,0x20,0x14,0x00,0x18,0x14,0x00,0x24,0x1C,0x14,0x34,0x2C,0x3C,0x3C,0x38 }; static const uint8_t palette_data_2d30[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x10,0x28,0x38,0x28, 0x00,0x08,0x04,0x04,0x04,0x38,0x30,0x08,0x00,0x10,0x10,0x00,0x20,0x10,0x08,0x30, 0x08,0x14,0x08,0x00,0x00,0x18,0x14,0x00,0x24,0x1C,0x14,0x34,0x2C,0x3C,0x3C,0x3C }; static const uint8_t palette_data_2cd0[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x0C,0x08,0x14,0x28, 0x00,0x08,0x00,0x00,0x00,0x38,0x30,0x08,0x00,0x0E,0x00,0x00,0x14,0x00,0x00,0x1A, 0x00,0x0C,0x0A,0x02,0x14,0x18,0x14,0x1C,0x20,0x20,0x2C,0x28,0x2C,0x3C,0x3C,0x38 }; static const uint8_t palette_data_2e80[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x10,0x28,0x38,0x28, 0x00,0x08,0x00,0x00,0x00,0x38,0x30,0x08,0x00,0x14,0x00,0x00,0x20,0x00,0x08,0x30, 0x08,0x34,0x20,0x14,0x1C,0x08,0x08,0x28,0x14,0x14,0x3C,0x28,0x28,0x38,0x38,0x38 }; static const uint8_t palette_data_2eb0[] = { 0x00,0x00,0x00,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x10,0x28,0x38,0x28, 0x00,0x08,0x00,0x00,0x00,0x38,0x30,0x08,0x00,0x14,0x00,0x00,0x20,0x00,0x08,0x30, 0x08,0x34,0x20,0x14,0x14,0x18,0x1C,0x1C,0x20,0x24,0x28,0x28,0x2C,0x38,0x38,0x38 }; const uint8_t *palettes_tbl[] = { palette_data_2df0, palette_data_2e50, palette_data_2dc0, palette_data_2d90, palette_data_2d00, palette_data_2d60, palette_data_2ca0, palette_data_2d30, palette_data_2cd0, palette_data_2cd0, palette_data_2e80, palette_data_2e80, palette_data_2e80, palette_data_2eb0, palette_data_2cd0, palette_data_2ca0, }; const uint8_t credits_palette_data[] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x3C,0x00,0x00,0x3C,0x00,0x00,0x3C,0x00,0x3C, 0x3C,0x1C,0x3C,0x3C,0x0C,0x3C,0x38,0x00,0x38,0x30,0x00,0x34,0x2C,0x00,0x34,0x24, 0x00,0x2C,0x24,0x00,0x24,0x1C,0x00,0x20,0x18,0x00,0x18,0x14,0x00,0x14,0x10,0x00 }; const uint8_t light_palette_data[] = { 0x00,0x00,0x00,0x0F,0x12,0x18,0x0C,0x0F,0x15,0x09,0x0C,0x12,0x00,0x0F,0x12,0x0C, 0x0C,0x12,0x00,0x00,0x00,0x00,0x15,0x18,0x00,0x0C,0x0C,0x00,0x0F,0x0F,0x06,0x12, 0x12,0x00,0x09,0x0C,0x00,0x0C,0x12,0x00,0x0F,0x18,0x00,0x12,0x1B,0x0F,0x15,0x1B }; const uint8_t present_palette_data[] = { 0x00,0x00,0x00,0x38,0x3F,0x2E,0x36,0x3A,0x24,0x35,0x35,0x1B,0x30,0x2A,0x14,0x2B, 0x1F,0x0D,0x26,0x14,0x08,0x21,0x0A,0x03,0x1C,0x00,0x00,0x06,0x00,0x00,0x28,0x1C, 0x14,0x0E,0x0C,0x0E,0x06,0x0A,0x0A,0x3A,0x12,0x20,0x3A,0x12,0x20,0x3A,0x12,0x20, 0x28,0x00,0x08,0x3C,0x2C,0x10,0x34,0x20,0x00,0x38,0x30,0x28,0x3C,0x34,0x20,0x3C, 0x38,0x28,0x3C,0x3C,0x30,0x2C,0x24,0x24,0x0C,0x10,0x04,0x10,0x18,0x08,0x14,0x20, 0x0C,0x1C,0x28,0x1C,0x20,0x2C,0x20,0x24,0x34,0x24,0x2C,0x3C,0x2C,0x30,0x2C,0x28, 0x00,0x00,0x00,0x3C,0x3C,0x3C,0x38,0x28,0x20,0x28,0x18,0x10,0x20,0x10,0x08,0x14, 0x10,0x14,0x18,0x00,0x00,0x18,0x14,0x18,0x18,0x18,0x1C,0x20,0x20,0x1C,0x24,0x1C, 0x1C,0x28,0x20,0x18,0x18,0x24,0x18,0x14,0x0C,0x14,0x38,0x38,0x38,0x28,0x28,0x28, 0x14,0x0C,0x14,0x1C,0x0C,0x14,0x2E,0x24,0x1E,0x32,0x28,0x20,0x35,0x2E,0x25,0x35, 0x2E,0x25,0x38,0x34,0x2C,0x14,0x0C,0x14,0x14,0x12,0x08,0x10,0x12,0x0A,0x00,0x00, 0x00,0x38,0x34,0x2C,0x18,0x0C,0x10,0x14,0x10,0x14,0x14,0x10,0x14,0x14,0x0C,0x14, 0x14,0x0C,0x14,0x14,0x10,0x14,0x00,0x0A,0x14,0x0E,0x06,0x10,0x06,0x00,0x00,0x06, 0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00, 0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00, 0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x06, 0x00,0x00,0x06,0x00,0x00,0x06,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00, 0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00, 0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C, 0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x1C,0x00, 0x00,0x1C,0x00,0x00,0x1C,0x00,0x00,0x21,0x0A,0x03,0x21,0x09,0x03,0x21,0x09,0x03, 0x21,0x09,0x03,0x21,0x09,0x03,0x21,0x09,0x03,0x21,0x09,0x03,0x21,0x09,0x03,0x21, 0x09,0x03,0x21,0x09,0x03,0x21,0x09,0x03,0x21,0x09,0x03,0x21,0x09,0x03,0x21,0x09, 0x03,0x21,0x09,0x03,0x21,0x09,0x03,0x21,0x09,0x03,0x21,0x09,0x03,0x21,0x09,0x03, 0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26, 0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14, 0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08, 0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x26,0x14,0x08,0x2B,0x1F,0x0D,0x2B, 0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E, 0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D, 0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x2B, 0x1E,0x0D,0x2B,0x1E,0x0D,0x2B,0x1E,0x0D,0x30,0x2A,0x14,0x30,0x29,0x14,0x30,0x29, 0x14,0x30,0x29,0x14,0x30,0x29,0x14,0x30,0x29,0x14,0x30,0x29,0x14,0x30,0x29,0x14, 0x30,0x29,0x14,0x30,0x29,0x14,0x30,0x29,0x14,0x30,0x29,0x14,0x30,0x29,0x14,0x30, 0x29,0x14,0x30,0x29,0x14,0x30,0x29,0x14,0x30,0x29,0x14,0x30,0x29,0x14,0x30,0x29, 0x14,0x30,0x29,0x14,0x35,0x35,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B, 0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35, 0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34, 0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B,0x35,0x34,0x1B, 0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36, 0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A, 0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24, 0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x36,0x3A,0x24,0x38,0x3F,0x2E,0x38, 0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F, 0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E, 0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x38, 0x3F,0x2E,0x38,0x3F,0x2E,0x38,0x3F,0x2E,0x3A,0x12,0x22,0x3A,0x12,0x22,0x3A,0x12, 0x22,0x3A,0x12,0x22,0x3A,0x12,0x22,0x3A,0x12,0x22,0x3A,0x12,0x22,0x3F,0x3F,0x3F }; const uint8_t menu_palette_data[] = { 0x08,0x10,0x1C,0x00,0x04,0x04,0x0C,0x14,0x20,0x10,0x18,0x20,0x38,0x30,0x08,0x38, 0x30,0x08,0x38,0x30,0x08,0x38,0x30,0x08,0x34,0x20,0x14,0x34,0x20,0x14,0x34,0x20, 0x14,0x34,0x20,0x14,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; const uint8_t spr_offs_tbl[] = { 0x14,0x24,0x10,0x23,0x0C,0x24,0x10,0x24,0x10,0x25,0x10,0x25,0x0F,0x24,0x10,0x23, 0x0F,0x23,0x0F,0x23,0x0C,0x23,0x10,0x26,0x14,0x1F,0x18,0x1F,0x10,0x1F,0x10,0x24, 0x0C,0x20,0x14,0x1E,0x14,0x1F,0x14,0x1F,0x10,0x1E,0x0C,0x1E,0x10,0x1F,0x0C,0x1E, 0x0C,0x20,0x14,0x22,0x10,0x21,0x10,0x23,0x10,0x22,0x14,0x1F,0x14,0x20,0x14,0x1E, 0x14,0x1F,0x18,0x20,0x10,0x24,0x0C,0x20,0x10,0x20,0x10,0x21,0x0C,0x1D,0x0E,0x11, 0x09,0x10,0x0E,0x11,0x0F,0x10,0x09,0x0F,0x0A,0x0F,0x0C,0x0E,0x10,0x0B,0x0C,0x10, 0x10,0x19,0x10,0x1F,0x0C,0x21,0x10,0x1F,0x10,0x1F,0x04,0x06,0x04,0x08,0x08,0x09, 0x08,0x0B,0x08,0x0B,0x08,0x13,0x0C,0x12,0x0C,0x0D,0x08,0x10,0x08,0x10,0x08,0x10, 0x08,0x0F,0x0C,0x0F,0x0C,0x13,0x11,0x0F,0x0E,0x0D,0x07,0x0A,0x08,0x0F,0x08,0x0F, 0x08,0x0C,0x08,0x0F,0x0B,0x09,0x0C,0x09,0x0C,0x09,0x0C,0x09,0x0C,0x09,0x0C,0x09, 0x0B,0x09,0x0C,0x09,0x0C,0x09,0x0C,0x09,0x0C,0x09,0x0C,0x09,0x14,0x0D,0x17,0x0D, 0x16,0x0D,0x17,0x0D,0x1B,0x11,0x0E,0x05,0x07,0x0D,0x07,0x0D,0x07,0x0D,0x07,0x0D, 0x07,0x0D,0x06,0x13,0x0F,0x16,0x0B,0x1E,0x0B,0x1D,0x0B,0x21,0x06,0x21,0x0B,0x21, 0x0B,0x07,0x0B,0x07,0x0B,0x07,0x0B,0x07,0x0B,0x07,0x0B,0x07,0x19,0x41,0x16,0x2C, 0x16,0x20,0x13,0x2E,0x10,0x26,0x13,0x23,0x11,0x21,0x14,0x21,0x18,0x0E,0x18,0x1D, 0x18,0x1F,0x0C,0x13,0x0C,0x14,0x09,0x17,0x09,0x1B,0x0F,0x17,0x0C,0x1B,0x0C,0x1F, 0x0C,0x0E,0x08,0x0F,0x0C,0x13,0x08,0x12,0x08,0x12,0x0C,0x0C,0x0C,0x13,0x08,0x19, 0x0C,0x15,0x0C,0x17,0x08,0x1B,0x08,0x14,0x08,0x17,0x08,0x15,0x0C,0x0B,0x0C,0x0B, 0x08,0x16,0x08,0x16,0x08,0x13,0x08,0x12,0x08,0x12,0x08,0x13,0x08,0x1D,0x08,0x15, 0x08,0x1C,0x0C,0x14,0x0C,0x0F,0x08,0x0F,0x08,0x13,0x08,0x15,0x08,0x15,0x0C,0x11, 0x0C,0x0C,0x0C,0x0D,0x0C,0x0D,0x0C,0x11,0x0C,0x16,0x08,0x0D,0x08,0x10,0x08,0x18, 0x08,0x11,0x0C,0x0B,0x08,0x17,0x0C,0x12,0x0C,0x0F,0x0C,0x0F,0x0C,0x0F,0x08,0x13, 0x0C,0x14,0x08,0x12,0x04,0x17,0x08,0x15,0x08,0x12,0x08,0x0C,0x08,0x0C,0x08,0x0C, 0x0C,0x17,0x08,0x12,0x08,0x10,0x08,0x0E,0x08,0x16,0x10,0x0D,0x0C,0x10,0x0C,0x12, 0x08,0x0D,0x0C,0x0E,0x08,0x13,0x08,0x19,0x04,0x16,0x08,0x0D,0x08,0x13,0x0C,0x10, 0x0C,0x12,0x0C,0x0D,0x08,0x0F,0x08,0x1C,0x08,0x0E,0x08,0x18,0x0C,0x12,0x10,0x14, 0x10,0x11,0x08,0x0B,0x08,0x1A,0x0C,0x12,0x0C,0x0D,0x0C,0x0C,0x08,0x0F,0x08,0x13, 0x08,0x13,0x08,0x13,0x08,0x13,0x08,0x13,0x0C,0x10,0x0C,0x16,0x08,0x12,0x0C,0x10, 0x08,0x0C,0x08,0x0C,0x08,0x0B,0x10,0x10,0x14,0x0E,0x14,0x0E,0x14,0x0E,0x10,0x0E, 0x10,0x0D,0x08,0x12,0x08,0x12,0x0C,0x12,0x10,0x29,0x10,0x1D,0x0C,0x14,0x14,0x21, 0x18,0x1A,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B, 0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B, 0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B, 0x08,0x0B,0x08,0x0B,0x08,0x0B,0x08,0x0B,0x04,0x08,0x08,0x0B,0x04,0x0B,0x04,0x05, 0x04,0x05,0x08,0x0C,0x18,0x28,0x1C,0x1E,0x18,0x30,0x10,0x33,0x22,0x46,0x13,0x46, 0x0D,0x1A,0x19,0x1D,0x1C,0x0E,0x08,0x0C,0x08,0x0C,0x08,0x0C,0x08,0x0C,0x08,0x0C, 0x08,0x0C,0x08,0x0C,0x08,0x0C,0x08,0x0C,0x08,0x0C,0x08,0x0C,0x08,0x0C,0x08,0x0C, 0x08,0x0C,0x08,0x0C,0x08,0x0C,0x10,0x15,0x04,0x0A,0x08,0x0C,0x08,0x0C,0x08,0x0C, 0x20,0x1F,0x10,0x10,0x04,0x0A,0x18,0x15,0x07,0x0B,0x04,0x0C,0x08,0x0C,0x08,0x1A, 0x0C,0x18,0x10,0x1D,0x0C,0x1E,0x10,0x1D,0x18,0x28,0x10,0x13,0x10,0x19,0x0C,0x1C, 0x10,0x0E,0x10,0x0F,0x10,0x0E,0x10,0x0F,0x08,0x1C,0x08,0x1C,0x08,0x1C,0x08,0x1C, 0x0C,0x15,0x0C,0x19,0x10,0x17,0x11,0x17,0x0C,0x20,0x0C,0x1F,0x10,0x16,0x14,0x0E, 0x14,0x09,0x0C,0x0F,0x0F,0x0B,0x0C,0x15,0x08,0x0A,0x08,0x09,0x04,0x0A,0x08,0x0A, 0x08,0x0A,0x0C,0x07,0x08,0x0E,0x0C,0x0C,0x0C,0x0B,0x14,0x1D,0x10,0x1C,0x10,0x1C, 0x14,0x18,0x14,0x24,0x14,0x1F,0x0C,0x20,0x0F,0x1F,0x0D,0x1F,0x10,0x1F,0x02,0x15, 0x01,0x15,0xFF,0x18,0xFF,0x18,0x10,0x14,0x10,0x14,0x0C,0x1C,0x04,0x05,0x0C,0x07, 0x10,0x0C,0x10,0x15,0x0C,0x06,0x0C,0x08,0x0C,0x16,0x10,0x1C,0x0C,0x1F,0x14,0x1E, 0x10,0x1A,0x10,0x13,0x08,0x13,0x0C,0x12,0x0C,0x0B,0x0C,0x05,0x18,0x1B,0x18,0x1D, 0x18,0x29,0x18,0x20,0x10,0x03,0x10,0x05,0x14,0x0B,0x18,0x13,0x1B,0x1A,0x20,0x20, 0x1E,0x1F,0x20,0x1F,0x21,0x20,0x18,0x27,0x18,0x1D,0x15,0x1E,0x18,0x1B,0x20,0x22, 0x1C,0x24,0x14,0x20,0x20,0x23,0x20,0x2B,0x1C,0x2D,0x10,0x25,0x10,0x25,0x10,0x22, 0x10,0x25,0x18,0x2E,0x18,0x2B,0x1C,0x1E,0x14,0x1C,0x14,0x18,0x1C,0x10,0x10,0x31, 0x10,0x3B,0x10,0x30,0x1C,0x22,0x20,0x1B,0x20,0x32,0x28,0x21,0x20,0x28,0x14,0x15, 0x10,0x20,0x10,0x1F,0x10,0x1E,0x18,0x1C,0x28,0x20,0x14,0x1E,0x14,0x23,0x14,0x3E, 0x1C,0x19,0x1C,0x19,0x1C,0x19,0x14,0x10,0x14,0x12,0x10,0x0E,0x34,0x29,0x08,0x16, 0x0C,0x17,0x0C,0x17,0x0C,0x17,0x10,0x17,0x0C,0x18,0x10,0x18,0x10,0x18,0x10,0x17, 0x10,0x1B,0x10,0x1B,0x10,0x18,0x0C,0x18,0x10,0x14,0x19,0x1C,0x20,0x1B,0x18,0x1D, 0x18,0x26,0x14,0x22,0x10,0x1A,0x17,0x17,0x00,0x00 }; const uint8_t spr_size_tbl[] = { 0x28,0x24,0x20,0x23,0x18,0x24,0x20,0x22,0x20,0x25,0x20,0x25,0x20,0x24,0x20,0x23, 0x20,0x23,0x20,0x23,0x18,0x23,0x20,0x26,0x28,0x1F,0x30,0x1F,0x20,0x1F,0x20,0x24, 0x18,0x20,0x28,0x1E,0x28,0x1F,0x28,0x1F,0x20,0x1E,0x18,0x1E,0x20,0x1F,0x18,0x1E, 0x18,0x20,0x28,0x22,0x20,0x21,0x20,0x23,0x20,0x22,0x28,0x1F,0x28,0x20,0x28,0x1E, 0x28,0x1F,0x30,0x20,0x20,0x24,0x18,0x20,0x20,0x20,0x20,0x21,0x18,0x1D,0x18,0x11, 0x10,0x10,0x18,0x11,0x20,0x0E,0x18,0x0F,0x10,0x0F,0x18,0x0E,0x20,0x0B,0x18,0x10, 0x20,0x19,0x20,0x1F,0x18,0x21,0x20,0x1F,0x20,0x1F,0x08,0x06,0x08,0x08,0x10,0x09, 0x10,0x0B,0x10,0x0B,0x10,0x13,0x18,0x12,0x18,0x0D,0x10,0x10,0x10,0x10,0x10,0x10, 0x10,0x0F,0x18,0x0F,0x18,0x13,0x18,0x18,0x20,0x13,0x18,0x19,0x10,0x0F,0x10,0x0F, 0x10,0x09,0x10,0x0F,0x18,0x09,0x18,0x09,0x18,0x09,0x18,0x09,0x18,0x09,0x18,0x09, 0x18,0x09,0x18,0x09,0x18,0x09,0x18,0x09,0x18,0x09,0x18,0x09,0x28,0x0D,0x30,0x0D, 0x30,0x0D,0x30,0x0D,0x38,0x11,0x18,0x13,0x10,0x0D,0x10,0x0D,0x10,0x0D,0x10,0x0D, 0x10,0x0D,0x18,0x13,0x20,0x16,0x18,0x1E,0x18,0x1D,0x18,0x21,0x10,0x21,0x18,0x21, 0x18,0x07,0x18,0x07,0x18,0x07,0x18,0x07,0x18,0x07,0x18,0x07,0x30,0x41,0x28,0x2C, 0x30,0x20,0x28,0x2E,0x20,0x26,0x28,0x23,0x30,0x21,0x28,0x21,0x30,0x0E,0x30,0x1D, 0x30,0x1F,0x30,0x13,0x30,0x14,0x30,0x17,0x30,0x1B,0x30,0x17,0x28,0x1B,0x28,0x22, 0x18,0x0E,0x10,0x0F,0x18,0x13,0x10,0x12,0x10,0x12,0x18,0x0C,0x18,0x13,0x10,0x19, 0x18,0x15,0x18,0x17,0x10,0x1B,0x10,0x14,0x10,0x17,0x10,0x15,0x18,0x0B,0x18,0x0B, 0x10,0x16,0x10,0x16,0x10,0x13,0x10,0x12,0x10,0x12,0x10,0x13,0x10,0x1D,0x10,0x15, 0x10,0x1C,0x18,0x14,0x18,0x0F,0x10,0x0F,0x10,0x13,0x10,0x15,0x10,0x15,0x18,0x11, 0x18,0x0C,0x18,0x0D,0x18,0x0D,0x18,0x11,0x18,0x16,0x10,0x0D,0x10,0x10,0x10,0x18, 0x10,0x11,0x18,0x0B,0x10,0x17,0x18,0x12,0x18,0x0F,0x18,0x0F,0x18,0x0F,0x10,0x13, 0x18,0x14,0x10,0x12,0x08,0x17,0x10,0x15,0x10,0x12,0x10,0x0C,0x10,0x0C,0x10,0x0C, 0x18,0x17,0x10,0x12,0x10,0x10,0x10,0x0E,0x10,0x16,0x20,0x0D,0x18,0x10,0x18,0x12, 0x10,0x0D,0x18,0x0E,0x10,0x13,0x10,0x19,0x08,0x16,0x10,0x0D,0x10,0x13,0x18,0x10, 0x18,0x12,0x18,0x0D,0x10,0x0F,0x10,0x1C,0x10,0x0E,0x10,0x18,0x18,0x12,0x20,0x14, 0x20,0x11,0x10,0x0B,0x10,0x1A,0x18,0x12,0x18,0x0D,0x18,0x0C,0x10,0x0F,0x10,0x13, 0x10,0x13,0x10,0x13,0x10,0x13,0x10,0x13,0x18,0x10,0x18,0x16,0x10,0x12,0x18,0x10, 0x10,0x0C,0x10,0x0C,0x10,0x0B,0x20,0x10,0x28,0x0E,0x28,0x0E,0x28,0x0E,0x20,0x0E, 0x20,0x0D,0x10,0x12,0x10,0x12,0x18,0x12,0x20,0x29,0x20,0x1D,0x18,0x14,0x28,0x21, 0x30,0x1A,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B, 0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B, 0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B, 0x10,0x0B,0x10,0x0B,0x10,0x0B,0x10,0x0B,0x08,0x08,0x10,0x0B,0x08,0x0B,0x08,0x05, 0x08,0x05,0x10,0x0C,0x30,0x28,0x38,0x1E,0x30,0x30,0x20,0x33,0x30,0x46,0x30,0x46, 0x28,0x1B,0x30,0x1D,0x38,0x0E,0x10,0x0C,0x10,0x0C,0x10,0x0C,0x10,0x0C,0x10,0x0C, 0x10,0x0C,0x10,0x0C,0x10,0x0C,0x10,0x0C,0x10,0x0C,0x10,0x0C,0x10,0x0C,0x10,0x0C, 0x10,0x0C,0x10,0x0C,0x10,0x0C,0x20,0x15,0x08,0x0A,0x10,0x0C,0x10,0x0C,0x10,0x0C, 0x40,0x1F,0x20,0x10,0x08,0x0A,0x30,0x15,0x10,0x0C,0x08,0x0C,0x10,0x0C,0x10,0x1A, 0x18,0x18,0x20,0x1D,0x18,0x1E,0x20,0x1D,0x30,0x28,0x20,0x13,0x20,0x19,0x18,0x1C, 0x20,0x0E,0x20,0x0F,0x20,0x0E,0x20,0x0F,0x10,0x1C,0x10,0x1C,0x10,0x1C,0x10,0x1C, 0x18,0x15,0x18,0x19,0x20,0x17,0x20,0x17,0x18,0x20,0x18,0x1E,0x20,0x16,0x28,0x0E, 0x28,0x0C,0x18,0x0F,0x20,0x0B,0x18,0x15,0x10,0x0A,0x10,0x09,0x08,0x0A,0x10,0x0A, 0x10,0x0A,0x18,0x07,0x10,0x0E,0x18,0x0C,0x18,0x0B,0x28,0x1D,0x20,0x1C,0x20,0x1C, 0x28,0x18,0x28,0x24,0x28,0x1F,0x18,0x20,0x20,0x1F,0x20,0x1F,0x20,0x1F,0x10,0x15, 0x10,0x15,0x10,0x18,0x18,0x18,0x28,0x14,0x28,0x12,0x20,0x1C,0x08,0x05,0x18,0x07, 0x20,0x0C,0x20,0x15,0x18,0x06,0x18,0x08,0x18,0x16,0x20,0x1C,0x18,0x1F,0x28,0x1E, 0x20,0x1A,0x20,0x13,0x10,0x13,0x18,0x12,0x18,0x0B,0x18,0x05,0x30,0x1B,0x30,0x1D, 0x30,0x29,0x30,0x20,0x20,0x03,0x20,0x05,0x28,0x0B,0x30,0x13,0x38,0x1B,0x40,0x20, 0x40,0x1F,0x40,0x1F,0x40,0x20,0x30,0x27,0x30,0x1D,0x30,0x1E,0x30,0x1B,0x40,0x22, 0x38,0x24,0x28,0x20,0x40,0x23,0x40,0x2B,0x38,0x2D,0x20,0x25,0x20,0x25,0x20,0x22, 0x20,0x25,0x30,0x2E,0x30,0x2B,0x38,0x1E,0x28,0x1C,0x28,0x18,0x38,0x10,0x20,0x31, 0x20,0x3B,0x20,0x30,0x38,0x22,0x40,0x1B,0x20,0x1E,0x20,0x1C,0x20,0x20,0x28,0x15, 0x20,0x20,0x20,0x1F,0x20,0x1E,0x30,0x1C,0x50,0x20,0x28,0x1E,0x28,0x23,0x28,0x3E, 0x38,0x16,0x38,0x18,0x38,0x17,0x28,0x10,0x28,0x12,0x20,0x0E,0x68,0x29,0x10,0x16, 0x18,0x17,0x18,0x17,0x18,0x17,0x20,0x17,0x18,0x18,0x20,0x18,0x20,0x18,0x20,0x17, 0x20,0x1B,0x20,0x1B,0x20,0x18,0x18,0x18,0x20,0x14,0x30,0x1C,0x40,0x1C,0x30,0x1F, 0x30,0x26,0x28,0x22,0x20,0x1A,0x30,0x17,0x00,0x00 }; const uint16_t score_tbl[] = { 0x000A,0x0014,0x001E,0x0032,0x003C,0x0046,0x004B,0x0050,0x0064,0x00C8,0x01F4,0x0320,0x03E8,0x07D0,0x0BB8,0x1770, 0x2710 }; const uint8_t score_spr_lut[] = { 0x10,0x0F,0x0D,0x0E,0x0C,0x0C,0x0D,0x0E,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x03,0x03,0x02,0x02,0x01,0x01,0x03,0x02,0x03,0x03,0x03,0x02,0x03,0x00, 0x00,0x00,0x00,0x00,0x01,0x02,0x02,0x03,0x03,0x01,0x03,0x03,0x01,0x03,0x0B,0x01, 0x00,0x03,0x01,0x03,0x02,0x02,0x02,0x00,0x03,0x02,0x01,0x00,0x02,0x03,0x01,0x01, 0x01,0x02,0x03,0x01,0x03,0x03,0x00,0x09,0x0A,0x08,0x08,0x09,0x0A,0x08,0x07,0x08, 0x0B,0x0A,0x04,0x06,0x04,0x07,0x05,0x04,0x04,0x05,0x07,0x04,0x0B,0x07,0x03,0x06, 0x06,0x06,0x06,0x03,0x06,0x0A,0x07,0x05,0x05,0x0B,0x0A,0x08,0x09,0x00 }; static const uint8_t object_anim_7d93[] = { 0x09,0x00,0xFE,0xFF }; static const uint8_t object_anim_7d9b[] = { 0x00,0x00,0x00,0x00,0x01,0x00,0x01,0x00,0x02,0x00,0x02,0x00,0x03,0x00,0x03,0x00, 0x04,0x00,0x04,0x00,0x05,0x00,0x05,0x00,0xE8,0xFF }; static const uint8_t object_anim_7dcf[] = { 0x0B,0x00,0x0B,0x00,0x0B,0x00,0x0B,0x00,0x0C,0x00,0xFE,0xFF }; static const uint8_t object_anim_7ddb[] = { 0x22,0x00,0x22,0x00,0x23,0x00,0x23,0x00,0x24,0x00,0x24,0x00,0x24,0x40,0xF2,0xFF }; static const uint8_t object_anim_7deb[] = { 0x15,0x00,0x15,0x00,0x15,0x00,0x15,0x00,0x16,0x00,0x16,0x00,0x16,0x00,0x16,0x00, 0x17,0x00,0x17,0x00,0x17,0x00,0x17,0x00,0x18,0x00,0x18,0x00,0x18,0x00,0x18,0x00, 0x13,0x00,0x13,0x00,0x13,0x00,0x13,0x00,0x14,0x00,0x14,0x00,0x14,0x00,0x14,0x00, 0xD0,0xFF }; static const uint8_t object_anim_7e1d[] = { 0x12,0x00,0x12,0x00,0x12,0x00,0x12,0x00,0x12,0x00,0x11,0x00,0x11,0x00,0x11,0x00, 0x11,0x00,0x11,0x00,0xEC,0xFF }; static const uint8_t object_anim_7e33[] = { 0x25,0x00,0x25,0x00,0x25,0x00,0x26,0x00,0x26,0x00,0x26,0x00,0x0E,0x00,0x0E,0x00, 0x0E,0x40,0xEE,0xFF }; static const uint8_t object_anim_7e47[] = { 0x0F,0x00,0x0F,0x00,0x0F,0x00,0x23,0x00,0x23,0x00,0x23,0x00,0x10,0x00,0x10,0x00, 0x10,0x40,0xEE,0xFF }; static const uint8_t object_anim_7e5b[] = { 0x21,0x00,0xFE,0xFF }; static const uint8_t object_anim_7e71[] = { 0x06,0x00,0x06,0x00,0x06,0x00,0x07,0x00,0x07,0x00,0x07,0x00,0x06,0x00,0x06,0x00, 0x06,0x00,0x06,0x00,0x07,0x00,0x07,0x00,0x07,0x00,0x07,0x00,0x06,0x00,0x06,0x00, 0x06,0x00,0x06,0x00,0x06,0x00,0x07,0x00,0x07,0x00,0x07,0x00,0x07,0x00,0x07,0x00, 0xEC,0xFF }; static const uint8_t object_anim_7ea3[] = { 0x09,0x00,0x09,0x00,0x09,0x00,0x09,0x00,0x0A,0x00,0x0A,0x00,0x0A,0x00,0x0A,0x00, 0x09,0x00,0x09,0x00,0x09,0x00,0x09,0x00,0x08,0x00,0x08,0x00,0x08,0x00,0x08,0x00, 0xE0,0xFF }; static const uint8_t object_anim_7e5f[] = { 0x19,0x00,0x19,0x00,0x1A,0x00,0x1A,0x00,0x1B,0x00,0x1B,0x00,0x1C,0x00,0x1C,0x00, 0xF8,0xFF }; static const uint8_t object_anim_7ec5[] = { 0x1D,0x00,0x1D,0x00,0x1D,0x00,0x1F,0x00,0x1F,0x00,0x1F,0x00,0xF4,0xFF }; static const uint8_t object_anim_7d97[] = { 0x2F,0x00,0xFE,0xFF }; static const uint8_t object_anim_7db5[] = { 0x27,0x00,0x27,0x00,0x28,0x00,0x28,0x00,0x29,0x00,0x29,0x00,0x2A,0x00,0x2A,0x00, 0x2B,0x00,0x2B,0x00,0x2C,0x00,0x2C,0x00,0xE8,0xFF }; const uint8_t *object_anim_tbl[] = { object_anim_7d93, object_anim_7d9b, object_anim_7dcf, object_anim_7ddb, object_anim_7deb, object_anim_7e1d, object_anim_7e33, object_anim_7e47, object_anim_7e5b, 0, 0, 0, 0, 0, 0, 0, object_anim_7e71, object_anim_7ea3, object_anim_7e5f, object_anim_7ec5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, object_anim_7d97, object_anim_7db5, 0, object_anim_7d97, object_anim_7d97, object_anim_7d97, object_anim_7d97, object_anim_7d97, }; static const uint8_t club_anim_data[] = { 0x22,0x00,0x3A,0x00,0x0B,0x00,0x10,0x00,0x23,0x00,0x3B,0x00,0x07,0x00,0x19,0x00, 0x24,0x00,0x3C,0x00,0xE9,0xFF,0x02,0x00,0x25,0x00,0x3D,0x00,0x0B,0x00,0x03,0x00, 0x26,0x00,0x3E,0x00,0x08,0x00,0x15,0x00,0x0E,0x00,0x3F,0x00,0xEE,0xFF,0x1B,0x00, 0x0F,0x00,0x40,0x00,0x08,0x00,0x12,0x00,0x10,0x00,0x41,0x00,0xF7,0xFF,0xF6,0xFF, 0xAA,0x55,0x22,0x00,0xEB,0x00,0x0F,0x00,0x1F,0x00,0x23,0x00,0xEC,0x00,0xFA,0xFF, 0x0F,0x00,0x24,0x00,0xF0,0x00,0xE6,0xFF,0xF6,0xFF,0x25,0x00,0xEE,0x00,0x14,0x00, 0x00,0x00,0x26,0x00,0xEC,0x00,0xFA,0xFF,0x0F,0x00,0x0E,0x00,0xEF,0x00,0xE7,0xFF, 0x14,0x00,0x0F,0x00,0xEB,0x00,0x0E,0x00,0x1F,0x00,0x10,0x00,0xED,0x00,0xEE,0xFF, 0xEB,0xFF,0xAA,0x55,0x22,0x00,0x43,0x00,0x08,0x00,0x27,0x00,0x23,0x00,0x43,0x00, 0x02,0x00,0x1E,0x00,0x24,0x00,0x44,0x00,0xF4,0xFF,0x0D,0x00,0x25,0x00,0x44,0x00, 0x02,0x00,0x1E,0x00,0x0E,0x00,0x44,0x00,0x00,0x00,0x20,0x00,0x0F,0x00,0x43,0x00, 0x08,0x00,0x25,0x00,0x10,0x00,0x44,0x00,0xFA,0xFF,0x03,0x00,0xAA,0x55,0xD0,0x00, 0xC0,0xFF,0x43,0x00,0x44,0x00,0x45,0x00,0x5B,0x00,0xF8,0xFF,0x22,0x00,0x12,0x01, 0x08,0x00,0x13,0x00,0x23,0x00,0x13,0x01,0x02,0x00,0x0A,0x00,0x24,0x00,0x14,0x01, 0xF4,0xFF,0xFD,0xFF,0x25,0x00,0x15,0x01,0x02,0x00,0x0A,0x00,0x0E,0x00,0x14,0x01, 0x00,0x00,0x0C,0x00,0x0F,0x00,0x12,0x01,0x08,0x00,0x11,0x00,0x10,0x00,0x12,0x01, 0xFA,0xFF,0xEF,0xFF,0xAA,0x55,0xD0,0x00,0xE0,0xFF,0x12,0x01,0x13,0x01,0x14,0x01, 0x15,0x01,0xF8,0xFF }; const struct club_anim_t club_anim_tbl[] = { { &club_anim_data[0x00], 2, 0x19, 0 }, { &club_anim_data[0x42], 6, 0x1e, 0 }, { &club_anim_data[0x84], 6, 0x14, 1 }, { &club_anim_data[0xcc], 12, 0x1e, 3 }, }; const uint8_t player_anim_lut[] = { 0x00,0x03,0x05,0x07,0x02,0x06,0x00,0x00,0x01,0x03,0x04,0x07,0x02,0x06,0x01,0x00, 0x01,0x03,0x04,0x07,0x02,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }; const uint8_t player_flying_anim_data[] = { 0x7C,0x00,0x7B,0x00,0x7A,0x00,0x79,0x00,0x7D,0x00,0x7E,0x00,0x7F,0x00,0x27,0x00, 0x77,0x00,0xFE,0xEF,0x28,0x00,0x77,0x00,0x00,0xF0,0x29,0x00,0x77,0x00,0x00,0xEF, 0x2A,0x00,0x77,0x00,0x01,0xF0,0x2B,0x00,0x77,0x00,0x00,0xF1,0x2C,0x00,0x77,0x00, 0xFE,0xF1,0x2D,0x00,0x77,0x00,0x01,0xF2,0x2E,0x00,0x77,0x00,0xFF,0xF5,0x2F,0x00, 0x77,0x00,0x02,0xF0,0x30,0x00,0x79,0x00,0xFA,0xE7,0x31,0x00,0x79,0x00,0xF7,0xE1, 0x32,0x00,0x79,0x00,0xF5,0xDF,0x33,0x00,0x79,0x00,0xF3,0xE1,0x34,0x00,0x79,0x00, 0xF3,0xE1,0x00,0x00 }; const uint8_t vscroll_offsets_data[] = { 0x01,0x01,0x01,0x01,0x01,0x01,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02, 0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x02,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03, 0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03,0x03, 0x03,0x03,0x03,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04, 0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x05,0x06,0x06,0x06,0x06,0x06,0x06,0x06, 0x07,0x07,0x07,0x07,0x07,0x07,0x08,0x08,0x08,0x09,0x09,0x09,0x0A,0x0A,0x0B,0x0B, 0x0C,0x0D,0x0E,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10, 0x10,0x10,0x10,0x10 }; const uint8_t cos_tbl[] = { 0x00,0x01,0x03,0x04,0x06,0x07,0x09,0x0A,0x0C,0x0E,0x0F,0x11,0x12,0x14,0x15,0x17, 0x18,0x19,0x1B,0x1C,0x1E,0x1F,0x20,0x22,0x23,0x24,0x26,0x27,0x28,0x29,0x2A,0x2C, 0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x36,0x37,0x38,0x39,0x39,0x3A, 0x3B,0x3B,0x3C,0x3C,0x3D,0x3D,0x3E,0x3E,0x3E,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F, 0x40,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3E,0x3E,0x3E,0x3D,0x3D,0x3C,0x3C,0x3B, 0x3B,0x3A,0x39,0x39,0x38,0x37,0x36,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x2F,0x2E, 0x2D,0x2C,0x2A,0x29,0x28,0x27,0x26,0x24,0x23,0x22,0x20,0x1F,0x1E,0x1C,0x1B,0x19, 0x18,0x17,0x15,0x14,0x12,0x11,0x0F,0x0E,0x0C,0x0A,0x09,0x07,0x06,0x04,0x03,0x01, 0xFF,0xFE,0xFC,0xFB,0xF9,0xF8,0xF6,0xF5,0xF3,0xF1,0xF0,0xEE,0xED,0xEB,0xEA,0xE8, 0xE7,0xE6,0xE4,0xE3,0xE1,0xE0,0xDF,0xDD,0xDC,0xDB,0xD9,0xD8,0xD7,0xD6,0xD5,0xD3, 0xD2,0xD1,0xD0,0xCF,0xCE,0xCD,0xCC,0xCB,0xCA,0xC9,0xC9,0xC8,0xC7,0xC6,0xC6,0xC5, 0xC4,0xC4,0xC3,0xC3,0xC2,0xC2,0xC1,0xC1,0xC1,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0, 0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC1,0xC1,0xC1,0xC2,0xC2,0xC3,0xC3,0xC4, 0xC4,0xC5,0xC6,0xC6,0xC7,0xC8,0xC9,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1, 0xD2,0xD3,0xD5,0xD6,0xD7,0xD8,0xD9,0xDB,0xDC,0xDD,0xDF,0xE0,0xE1,0xE3,0xE4,0xE6, 0xE7,0xE8,0xEA,0xEB,0xED,0xEE,0xF0,0xF1,0xF3,0xF5,0xF6,0xF8,0xF9,0xFB,0xFC,0xFE }; const uint8_t sin_tbl[] = { 0x40,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3E,0x3E,0x3E,0x3D,0x3D,0x3C,0x3C,0x3B, 0x3B,0x3A,0x39,0x39,0x38,0x37,0x36,0x36,0x35,0x34,0x33,0x32,0x31,0x30,0x2F,0x2E, 0x2D,0x2C,0x2A,0x29,0x28,0x27,0x26,0x24,0x23,0x22,0x20,0x1F,0x1E,0x1C,0x1B,0x19, 0x18,0x17,0x15,0x14,0x12,0x11,0x0F,0x0E,0x0C,0x0A,0x09,0x07,0x06,0x04,0x03,0x01, 0x00,0xFE,0xFC,0xFB,0xF9,0xF8,0xF6,0xF5,0xF3,0xF1,0xF0,0xEE,0xED,0xEB,0xEA,0xE8, 0xE7,0xE6,0xE4,0xE3,0xE1,0xE0,0xDF,0xDD,0xDC,0xDB,0xD9,0xD8,0xD7,0xD6,0xD5,0xD3, 0xD2,0xD1,0xD0,0xCF,0xCE,0xCD,0xCC,0xCB,0xCA,0xC9,0xC9,0xC8,0xC7,0xC6,0xC6,0xC5, 0xC4,0xC4,0xC3,0xC3,0xC2,0xC2,0xC1,0xC1,0xC1,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0, 0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC0,0xC1,0xC1,0xC1,0xC2,0xC2,0xC3,0xC3,0xC4, 0xC4,0xC5,0xC6,0xC6,0xC7,0xC8,0xC9,0xC9,0xCA,0xCB,0xCC,0xCD,0xCE,0xCF,0xD0,0xD1, 0xD2,0xD3,0xD5,0xD6,0xD7,0xD8,0xD9,0xDB,0xDC,0xDD,0xDF,0xE0,0xE1,0xE3,0xE4,0xE6, 0xE7,0xE8,0xEA,0xEB,0xED,0xEE,0xF0,0xF1,0xF3,0xF5,0xF6,0xF8,0xF9,0xFB,0xFC,0xFE, 0x00,0x01,0x03,0x04,0x06,0x07,0x09,0x0A,0x0C,0x0E,0x0F,0x11,0x12,0x14,0x15,0x17, 0x18,0x19,0x1B,0x1C,0x1E,0x1F,0x20,0x22,0x23,0x24,0x26,0x27,0x28,0x29,0x2A,0x2C, 0x2D,0x2E,0x2F,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x36,0x37,0x38,0x39,0x39,0x3A, 0x3B,0x3B,0x3C,0x3C,0x3D,0x3D,0x3E,0x3E,0x3E,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F }; const uint16_t monster_spr_tbl[] = { 0x0138,0x013C,0x0056,0x013E,0x0149,0x006F,0x014A,0x0153,0x006D,0x0154,0x0155,0x005D,0x0156,0x0158,0x005C,0x0159, 0x015C,0x0068,0x015D,0x0162,0x0064,0x0163,0x0166,0x007D,0x0167,0x016D,0x006C,0x016E,0x0171,0x006F,0x0172,0x017A, 0x006B,0x017B,0x017D,0x0056,0x017E,0x0181,0x005A,0x0182,0x018B,0x0051,0x018C,0x0191,0x005E,0x0192,0x0194,0x00A1 }; const uint8_t monster_anim_tbl[] = { 0xFF,0xFF,0x91,0x00,0x91,0x00,0x92,0x00,0x92,0x00,0x93,0x00,0x93,0x00,0xF4,0xFF, 0x01,0x7D,0x00,0x00,0x28,0x00,0xFE,0xFF,0x26,0x00,0x26,0x00,0x26,0x00,0x26,0x00, 0x25,0x00,0x25,0x00,0x25,0x00,0x25,0x00,0x27,0x00,0x27,0x00,0x27,0x00,0x27,0x00, 0x25,0x00,0x25,0x00,0x25,0x00,0x25,0x00,0xE0,0xFF,0x00,0x7D,0x2A,0x00,0xFE,0xFF, 0x96,0x00,0xFE,0xFF,0x94,0x00,0x94,0x00,0x94,0x00,0x95,0x00,0x95,0x00,0x95,0x00, 0x96,0x00,0x96,0x00,0x96,0x00,0x97,0x00,0x97,0x00,0x97,0x00,0xE8,0xFF,0x00,0x7D, 0x94,0x00,0xFE,0xFF,0x01,0x7D,0x01,0x00,0x05,0x00,0xFE,0xFF,0x01,0x7D,0x02,0x00, 0x06,0x00,0x07,0x00,0xFE,0xFF,0x06,0x00,0xFE,0xFF,0x00,0x7D,0x11,0x00,0xFE,0xFF, 0x01,0x7D,0x03,0x00,0x36,0x00,0x36,0x00,0x37,0x00,0x37,0x00,0x38,0x00,0x38,0x00, 0x39,0x00,0x39,0x00,0x06,0x00,0xFE,0xFF,0x07,0x00,0xFE,0xFF,0x08,0x00,0x08,0x00, 0x09,0x00,0x09,0x00,0x0A,0x00,0x0A,0x00,0x0B,0x00,0x0B,0x00,0xF0,0xFF,0x10,0x00, 0x10,0x00,0x0C,0x00,0x0C,0x00,0x0D,0x00,0x0D,0x00,0x0E,0x00,0x0E,0x00,0x0F,0x00, 0x0F,0x00,0xF0,0xFF,0x00,0x7D,0x11,0x00,0xFE,0xFF,0x01,0x7D,0x04,0x00,0x06,0x00, 0x07,0x00,0xFE,0xFF,0x00,0x7D,0x11,0x00,0xFE,0xFF,0x01,0x7D,0x05,0x00,0x12,0x00, 0x13,0x00,0xFC,0xFF,0x14,0x00,0x15,0x00,0xFC,0xFF,0x00,0x7D,0x16,0x00,0xFE,0xFF, 0x5C,0x00,0x5C,0x00,0x5C,0x00,0x5C,0x00,0x5A,0x00,0x5A,0x00,0x5A,0x00,0x5A,0x00, 0x5B,0x00,0x5B,0x00,0x5B,0x00,0x5B,0x00,0xE8,0xFF,0x5C,0x00,0x5C,0x00,0x5C,0x00, 0x5A,0x00,0x5A,0x00,0x5A,0x00,0x5B,0x00,0x5B,0x00,0x5B,0x00,0xEE,0xFF,0x00,0x7D, 0x5B,0x00,0xFE,0xFF,0x01,0x7D,0x06,0x00,0x12,0x00,0x13,0x00,0xFC,0xFF,0x00,0x7D, 0x16,0x00,0xFE,0xFF,0x8D,0x00,0x8D,0x00,0x8D,0x00,0x8E,0x00,0x8E,0x00,0x8E,0x00, 0x8F,0x00,0x8F,0x00,0x8F,0x00,0x8E,0x00,0x8E,0x00,0x8E,0x00,0xE8,0xFF,0x00,0x7D, 0x90,0x00,0xFE,0xFF,0x01,0x7D,0x07,0x00,0x12,0x00,0x13,0x00,0xFC,0xFF,0x12,0x00, 0x13,0x00,0xFC,0xFF,0x00,0x7D,0x16,0x00,0xFE,0xFF,0x5C,0x00,0x5C,0x00,0x5C,0x00, 0x5C,0x00,0x5A,0x00,0x5A,0x00,0x5A,0x00,0x5A,0x00,0x5B,0x00,0x5B,0x00,0x5B,0x00, 0x5B,0x00,0xE8,0xFF,0x5C,0x00,0xFE,0xFF,0x00,0x7D,0x5A,0x00,0xFE,0xFF,0x01,0x7D, 0x08,0x00,0x21,0x00,0xFE,0xFF,0x22,0x00,0x22,0x00,0x22,0x00,0x22,0x00,0x24,0x00, 0xFE,0xFF,0x24,0x00,0x24,0x00,0x24,0x00,0x24,0x00,0x23,0x00,0xFE,0xFF,0x00,0x7D, 0x22,0x00,0xFE,0xFF,0x1D,0x00,0xFE,0xFF,0x1C,0x00,0xFE,0xFF,0x1D,0x00,0xFE,0xFF, 0x00,0x7D,0x1C,0x00,0xFE,0xFF,0x1E,0x00,0xFE,0xFF,0x1F,0x00,0x1F,0x00,0x20,0x00, 0x20,0x00,0x1E,0x00,0x1E,0x00,0xF4,0xFF,0x1F,0x00,0x1F,0x00,0x20,0x00,0x20,0x00, 0x1E,0x00,0x1E,0x00,0xF4,0xFF,0x00,0x7D,0x1E,0x00,0xFE,0xFF,0x25,0x00,0xFE,0xFF, 0x28,0x00,0x28,0x00,0x29,0x00,0xFE,0xFF,0x28,0x00,0xFE,0xFF,0x00,0x7D,0x2A,0x00, 0xFE,0xFF,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x54,0x00,0x55,0x00, 0x55,0x00,0x55,0x00,0x55,0x00,0x55,0x00,0x55,0x00,0xE8,0xFF,0x57,0x00,0xFE,0xFF, 0x58,0x00,0xFE,0xFF,0x00,0x7D,0x59,0x00,0xFE,0xFF,0x01,0x7D,0x09,0x00,0x17,0x00, 0x17,0x00,0x18,0x00,0x18,0x00,0xF8,0xFF,0x00,0x7D,0x1B,0x00,0xFE,0xFF,0x46,0x00, 0x46,0x00,0x47,0x00,0x47,0x00,0x48,0x00,0x48,0x00,0xF4,0xFF,0x00,0x7D,0x49,0x00, 0xFE,0xFF,0x2B,0x00,0x2B,0x00,0x2C,0x00,0x2C,0x00,0x2D,0x00,0x2D,0x00,0xF4,0xFF, 0x00,0x7D,0x2E,0x00,0xFE,0xFF,0x01,0x00,0x01,0x00,0x02,0x00,0x02,0x00,0x03,0x00, 0x03,0x00,0x02,0x00,0x02,0x00,0xF0,0xFF,0x00,0x7D,0x04,0x00,0xFE,0xFF,0x5A,0x00, 0x5A,0x00,0x5B,0x00,0x5B,0x00,0x5C,0x00,0x5C,0x00,0xF4,0xFF,0x00,0x7D,0x5A,0x00, 0xFE,0xFF,0x81,0x00,0x81,0x00,0x81,0x00,0x82,0x00,0x82,0x00,0x82,0x00,0x83,0x00, 0x83,0x00,0x83,0x00,0xEE,0xFF,0x00,0x7D,0x84,0x00,0x84,0x00,0x85,0x00,0x85,0x00, 0x86,0x00,0x86,0x00,0x8A,0x00,0x8A,0x00,0x8B,0x00,0x8B,0x00,0x87,0x00,0x87,0x00, 0xEC,0xFF,0x01,0x7D,0x0A,0x00,0x45,0x00,0xFE,0xFF,0x44,0x00,0x44,0x00,0x44,0x00, 0x44,0x00,0x43,0x00,0x43,0x00,0x43,0x00,0x43,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x40,0x01,0x00,0x01,0x00,0x01,0x00, 0x02,0x00,0x02,0x00,0x02,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x02,0x00,0x02,0x00, 0x02,0x00,0xE8,0xFF,0x00,0x00,0x00,0x00,0x43,0x00,0x43,0x00,0x44,0x00,0x44,0x00, 0x45,0x40,0x45,0x00,0xFE,0xFF,0x00,0x7D,0x04,0x00,0xFE,0xFF,0x4A,0x00,0xFE,0xFF, 0x4B,0x00,0x4B,0x00,0x4B,0x00,0x4C,0x00,0x4C,0x00,0x4C,0x00,0x4D,0x00,0x4D,0x00, 0x4D,0x00,0x4E,0x00,0x4E,0x00,0x4E,0x40,0x4F,0x00,0x4F,0x00,0x4F,0x00,0x50,0x00, 0x50,0x00,0x50,0x00,0x51,0x00,0x51,0x00,0x51,0x00,0x52,0x00,0x52,0x00,0x52,0x00, 0xE8,0xFF,0x4E,0x00,0x4E,0x00,0x4D,0x00,0x4D,0x00,0x4C,0x00,0x4C,0x00,0x4B,0x00, 0x4B,0x00,0x4A,0x40,0x4A,0x00,0xFE,0xFF,0x00,0x7D,0x53,0x00,0xFE,0xFF,0x3A,0x00, 0xFE,0xFF,0x3A,0x00,0x3A,0x00,0x3A,0x00,0x3B,0x00,0x3B,0x00,0x3B,0x00,0x3C,0x00, 0x3C,0x00,0x3C,0x00,0x3D,0x00,0x3D,0x00,0x3D,0x40,0x3E,0x00,0x3E,0x00,0x3E,0x00, 0x3F,0x00,0x3F,0x00,0x3F,0x00,0xF4,0xFF,0x3F,0x00,0x3F,0x00,0x3F,0x00,0x40,0x00, 0x40,0x00,0x40,0x00,0x41,0x00,0x41,0x00,0x41,0x00,0x42,0x00,0x42,0x00,0x42,0x40, 0x42,0x00,0xFE,0xFF,0x00,0x7D,0x3F,0x00,0xFE,0xFF,0x01,0x7D,0x0B,0x00,0x2F,0x00, 0x2F,0x00,0x2F,0x00,0x30,0x00,0x30,0x00,0x30,0x00,0x2F,0x00,0x2F,0x00,0x2F,0x00, 0x30,0x00,0x30,0x00,0x30,0x00,0x2F,0x00,0x2F,0x00,0x2F,0x00,0x30,0x00,0x30,0x00, 0x30,0x00,0x31,0x00,0x31,0x00,0x32,0x00,0x32,0x40,0x33,0x00,0x33,0x00,0x34,0x00, 0x34,0x00,0xF8,0xFF,0x00,0x7D,0x35,0x00,0xFE,0xFF,0x01,0x7D,0x0C,0x00,0x80,0x00, 0x88,0x00,0x89,0x00,0xFC,0xFF,0x00,0x7D,0x84,0x00,0x84,0x00,0x85,0x00,0x85,0x00, 0x86,0x00,0x86,0x00,0x8A,0x00,0x8A,0x00,0x8B,0x00,0x8B,0x00,0x87,0x00,0x87,0x00, 0xEC,0xFF,0x2B,0x00,0x2B,0x00,0x2C,0x00,0x2C,0x00,0x2D,0x00,0x2D,0x00,0xF4,0xFF, 0x00,0x7D,0x2E,0x00,0xFE,0xFF,0x3E,0x00,0x3E,0x00,0x3F,0x00,0x3F,0x00,0xF8,0xFF, 0x00,0x7D,0x3E,0x00,0xFE,0xFF,0x57,0x00,0x57,0x00,0x58,0x00 }; const uint8_t boss_minotaur_seq_data[] = { 0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x04,0x04,0x04,0x04, 0x04,0x04,0x04,0x04,0x04,0x04,0x04,0x04,0xE8,0x03,0x03,0x03,0xFD,0x03,0x03,0x03, 0x03,0x03,0x03,0x03,0xF1,0x00,0x00,0xFF,0x03,0x03,0xFE,0x03,0x00,0x00,0x00,0x03, 0x03,0x03,0x03,0x00,0xFE,0x00,0x03,0x03,0x03,0x00,0x00,0x03,0x03,0x03,0xE7,0x04, 0x04,0x04,0x04,0x04,0x04,0x04,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x00,0x00,0x00, 0xFF,0x00,0x00,0x00,0x00,0xEA }; const uint16_t boss_gorilla_data[] = { 0x01A2,0x019A,0x0195,0x019F,0x01A0,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A2,0x019A,0x0196,0x019D,0x01A0,0xA60F, 0xA603,0xA5FD,0xA5F7,0xA609,0x01A2,0x019A,0x0196,0x019C,0x01A0,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A1,0x0199, 0x0196,0x019D,0x819D,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A2,0x019B,0x0196,0x019D,0x819D,0xA60F,0xA603,0xA5FD, 0xA5F7,0xA609,0x01A2,0x0199,0x8198,0x019E,0x819E,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A2,0x019A,0x0198,0x019C, 0x819D,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A2,0x019A,0x0195,0x019E,0x819E,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609, 0x01A2,0x0199,0x0195,0x019E,0x819D,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A3,0x0199,0x0195,0x019E,0x819D,0xA60F, 0xA603,0xA5FD,0xA5F7,0xA609,0x01A2,0x0199,0x0195,0x019E,0x01A0,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A3,0x0199, 0x0195,0x019D,0x01A0,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A3,0x019B,0x0195,0x019E,0x819D,0xA60F,0xA603,0xA5FD, 0xA5F7,0xA609,0x01A3,0x019B,0x0195,0x019D,0x819D,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A3,0x019B,0x0195,0x019D, 0x01A0,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A2,0x019A,0x0198,0x019C,0x819D,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609, 0x01A2,0x019A,0x0197,0x019E,0x819D,0xA60F,0xA603,0xA5FD,0xA5F7,0xA609,0x01A2,0x019A,0x0197,0x019D,0x819E,0xA60F, 0xA603,0xA5FD,0xA5F7,0xA609,0x01A3,0x019A,0x0195,0x81A0,0x819D,0xA60F,0xA603,0xA5FD,0xA609,0xA5F7 }; const uint16_t boss_gorilla_spr_tbl[] = { 0x01A2,0x0199,0xE9F8,0x01A2,0x019A,0xEBFB,0x01A2,0x019B,0xE8F6,0x01A1,0x0199,0xDBF6,0x01A1,0x019A,0xDD01,0x01A1, 0x019B,0xDAF3,0x01A3,0x0199,0xF0ED,0x01A3,0x019A,0xF2F0,0x01A3,0x019B,0xF0EB,0x0199,0x0195,0xE8FF,0x019A,0x0195, 0xEAFB,0x019B,0x0195,0xF7F8,0x0199,0x0196,0xE8FF,0x019A,0x0196,0xEAFB,0x019B,0x0196,0xF7F8,0x0199,0x0197,0xE8FF, 0x019A,0x0197,0xEAFB,0x019B,0x0197,0xF7F8,0x0199,0x0198,0xE8FF,0x019A,0x0198,0xEAFB,0x019B,0x0198,0xF7F8,0x0199, 0x8198,0xE8FF,0x019A,0x8198,0xEAFB,0x019B,0x8198,0xF7F8,0x0199,0x019C,0xECE2,0x0199,0x019D,0xF1DD,0x0199,0x019E, 0xE9D6,0x0199,0x019F,0x0CE8,0x019A,0x019C,0xECE2,0x019A,0x019D,0xF1E0,0x019A,0x019E,0xEAD4,0x019A,0x019F,0x0FEA, 0x019B,0x019C,0xF8DE,0x019B,0x019D,0x02DC,0x019B,0x019E,0xFBCE,0x019B,0x019F,0x1DE6,0x0199,0x819D,0xEB21,0x0199, 0x819E,0xE42C,0x0199,0x01A0,0x1012,0x019A,0x819D,0xEE18,0x019A,0x819E,0xEA29,0x019A,0x01A0,0x1309,0x019B,0x819D, 0xF91A,0x019B,0x819E,0xF329,0x019B,0x01A0,0x1E0C,0x019A,0x81A0,0x16EC }; const uint16_t snow_pattern1_data[] = { 0xFFFF }; const uint16_t snow_pattern2_data[] = { 0x01B8,0x0001,0x0028,0x0370,0x0006,0x0064,0x0528,0x0001,0x00FF,0xFFFF };