Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

16.6 KB
Raw Blame
/* Made by tools/pack.py (tools/minigames.py): the minigames' levels. Included once (mini.c). */
#ifndef FNAF3_MINI_DATA_H
#define FNAF3_MINI_DATA_H
#include <stdint.h>

typedef struct { int16_t x, y, w, h; } MgRect;
typedef struct { uint8_t obj, pad; int16_t x, y; } MgInst;
typedef struct { uint8_t anim, dir, n, pad; uint16_t first; } MgAnim;   /* sprites first.. */
typedef struct { uint16_t anim0; uint8_t nanim, pad; int16_t w, h, hx, hy; } MgObj;   /* box: its first picture's */
typedef struct { int16_t w, h; uint8_t sw, sh; uint16_t screen0; uint16_t solid0, nsolid, inst0, ninst;
                 uint8_t obj0, nobj; int16_t start_x, start_y; } MgLevel;

#define MGL_BB 0
#define MGL_MANGLE 1
#define MGL_CHICA 2
#define MGL_STAGE 3
#define MGL_SHADOW 4
#define MGL_HAPPY 5
#define MGO_BB_ACTIVE 0
#define MGO_BB_BALLOONS 1
#define MGO_BB_COLLECT 2
#define MGO_BB_GET_THIS 3
#define MGO_BB_ACTIVE_6 4
#define MGO_BB_BIG_CAKE 5
#define MGO_BB_EXIT 6
#define MGO_BB_ACTIVE_5 7
#define MGO_MANGLE_ACTIVE_4 0
#define MGO_MANGLE_SHADOW 1
#define MGO_MANGLE_EXIT 2
#define MGO_MANGLE_ACTIVE_6 3
#define MGO_MANGLE_ACTIVE_8 4
#define MGO_MANGLE_ACTIVE_7 5
#define MGO_MANGLE_ACTIVE_9 6
#define MGO_MANGLE_ACTIVE 7
#define MGO_MANGLE_COLLECT 8
#define MGO_MANGLE_GET_THIS 9
#define MGO_MANGLE_KID 10
#define MGO_MANGLE_BALLOONS 11
#define MGO_MANGLE_WALL 12
#define MGO_MANGLE_ACTIVE_5 13
#define MGO_CHICA_ACTIVE_9 0
#define MGO_CHICA_ACTIVE_8 1
#define MGO_CHICA_EXIT 2
#define MGO_CHICA_ACTIVE 3
#define MGO_CHICA_BALLOONS 4
#define MGO_CHICA_COLLECT 5
#define MGO_CHICA_COLLECT_4 6
#define MGO_CHICA_GET_THIS 7
#define MGO_CHICA_EXIT_2 8
#define MGO_CHICA_ACTIVE_4 9
#define MGO_CHICA_GET_THIS_2 10
#define MGO_CHICA_ACTIVE_5 11
#define MGO_STAGE_EXIT 0
#define MGO_STAGE_ACTIVE_8 1
#define MGO_STAGE_BALLOONS 2
#define MGO_STAGE_COLLECT 3
#define MGO_STAGE_GET_THIS 4
#define MGO_STAGE_ACTIVE_6 5
#define MGO_STAGE_BIG_CAKE 6
#define MGO_STAGE_ACTIVE_9 7
#define MGO_STAGE_ACTIVE_11 8
#define MGO_STAGE_ZIP_RIGHT 9
#define MGO_STAGE_ZIP_UP 10
#define MGO_STAGE_ACTIVE 11
#define MGO_STAGE_ACTIVE_5 12
#define MGO_SHADOW_EXIT 0
#define MGO_SHADOW_ACTIVE_8 1
#define MGO_SHADOW_BALLOONS 2
#define MGO_SHADOW_GET_THIS 3
#define MGO_SHADOW_ACTIVE_6 4
#define MGO_SHADOW_BIG_CAKE 5
#define MGO_SHADOW_ACTIVE_9 6
#define MGO_SHADOW_ACTIVE_11 7
#define MGO_SHADOW_ZIP_UP 8
#define MGO_SHADOW_BLOCK 9
#define MGO_SHADOW_BLOCK_3 10
#define MGO_SHADOW_BLOCK_4 11
#define MGO_SHADOW_BLOCK_2 12
#define MGO_SHADOW_ZIP_RIGHT 13
#define MGO_SHADOW_ACTIVE_4 14
#define MGO_SHADOW_KID 15
#define MGO_SHADOW_ACTIVE 16
#define MGO_SHADOW_ACTIVE_5 17
#define MGO_HAPPY_BIG_CAKE 0
#define MGO_HAPPY_EXIT 1
#define MGO_HAPPY_ACTIVE 2
#define MGO_HAPPY_BALLOONS 3
#define MGO_HAPPY_COLLECT 4
#define MGO_HAPPY_GET_THIS 5
#define MGO_HAPPY_ACTIVE_6 6
#define MGO_HAPPY_COLLECT_3 7
#define MGO_HAPPY_ACTIVE_8 8
#define MGO_HAPPY_ACTIVE_13 9
#define MGO_HAPPY_ACTIVE_14 10
#define MGO_HAPPY_ACTIVE_15 11
#define MGO_HAPPY_TRIGGER 12
#define MGO_HAPPY_COLLECT_4 13
#define MGO_HAPPY_ACTIVE_5 14
#define MGF_HITBOX_W 46
#define MGF_HITBOX_H 46
#define MGF_HITBOX_HX 23
#define MGF_HITBOX_HY 23
#define MGF_FEEL_RIGHT_W 28
#define MGF_FEEL_RIGHT_H 54
#define MGF_FEEL_RIGHT_HX 14
#define MGF_FEEL_RIGHT_HY 27
#define MGF_FEEL_LEFT_W 28
#define MGF_FEEL_LEFT_H 54
#define MGF_FEEL_LEFT_HX 14
#define MGF_FEEL_LEFT_HY 27
#define MGF_FEEL_TOP_W 40
#define MGF_FEEL_TOP_H 22
#define MGF_FEEL_TOP_HX 20
#define MGF_FEEL_TOP_HY 11
#define MGF_FEEL_BOTTOM_W 50
#define MGF_FEEL_BOTTOM_H 22
#define MGF_FEEL_BOTTOM_HX 25
#define MGF_FEEL_BOTTOM_HY 11
#define MGF_FEEL_BOTTOM_2_W 50
#define MGF_FEEL_BOTTOM_2_H 22
#define MGF_FEEL_BOTTOM_2_HX 25
#define MGF_FEEL_BOTTOM_2_HY 11
#define MGF_FEEL_BOTTOM_3_W 52
#define MGF_FEEL_BOTTOM_3_H 22
#define MGF_FEEL_BOTTOM_3_HX 26
#define MGF_FEEL_BOTTOM_3_HY 11
#define MGL_COUNT 6

static const MgRect mg_solids[] = {
  {0, -6, 32, 2316},
  {105, 396, 798, 30},
  {903, 396, 798, 30},
  {1701, 396, 798, 30},
  {-24, 931, 798, 30},
  {774, 931, 798, 30},
  {1572, 931, 798, 30},
  {106, 132, 798, 30},
  {904, 132, 798, 30},
  {1702, 132, 798, 30},
  {-2, -10, 3054, 30},
  {2370, 132, 32, 294},
  {2370, 426, 32, 294},
  {2370, 720, 32, 294},
  {3044, -2, 32, 2316},
  {0, 2272, 3054, 30},
  {2180, 1662, 32, 328},
  {2180, 2198, 798, 30},
  {2910, 1652, 32, 572},
  {2180, 1652, 798, 30},
  {2334, 2096, 164, 30},
  {2536, 1992, 164, 30},
  {2758, 1904, 164, 30},
  {2466, 1828, 164, 30},
  {1328, 692, 798, 30},
  {2126, 692, 798, 30},
  {0, -6, 32, 2316},
  {105, 415, 1062, 30},
  {1167, 415, 1062, 30},
  {2229, 415, 1062, 30},
  {106, 132, 1062, 30},
  {1168, 132, 1062, 30},
  {2230, 132, 1062, 30},
  {-2, -10, 3054, 30},
  {3044, -2, 32, 2316},
  {-3, 1412, 3054, 30},
  {1211, 1138, 379, 30},
  {1561, 958, 32, 494},
  {0, -6, 32, 2316},
  {107, 420, 1322, 30},
  {-219, 790, 1322, 30},
  {1660, 670, 1276, 30},
  {107, 90, 2830, 30},
  {-2, -10, 3054, 30},
  {107, 89, 32, 400},
  {107, 416, 32, 400},
  {3044, -2, 32, 2316},
  {0, 2274, 3054, 30},
  {2180, 1662, 32, 328},
  {2014, 1534, 32, 772},
  {2180, 2198, 2830, 30},
  {2910, 1652, 32, 572},
  {2180, 1652, 2830, 30},
  {2334, 2096, 164, 30},
  {2536, 1992, 164, 30},
  {2758, 1904, 164, 30},
  {2466, 1828, 164, 30},
  {2367, 284, 32, 400},
  {904, 1358, 1276, 30},
  {1669, 1357, 1276, 30},
  {2237, 960, 32, 400},
  {332, 1066, 32, 322},
  {330, 1066, 164, 30},
  {176, 1066, 164, 30},
  {1070, 792, 32, 322},
  {1070, 1063, 32, 322},
  {0, -6, 32, 2316},
  {124, 58, 566, 30},
  {124, 362, 566, 30},
  {-2, -10, 3054, 30},
  {659, 59, 32, 304},
  {125, 59, 32, 304},
  {134, 298, 358, 92},
  {2382, -32, 32, 2316},
  {-6, 952, 3054, 30},
  {924, 58, 566, 30},
  {924, 362, 566, 30},
  {1459, 59, 32, 304},
  {925, 59, 32, 304},
  {934, 298, 358, 92},
  {128, 523, 566, 30},
  {128, 827, 566, 30},
  {663, 524, 32, 304},
  {129, 524, 32, 304},
  {138, 763, 358, 92},
  {930, 519, 566, 30},
  {930, 823, 566, 30},
  {1465, 520, 32, 304},
  {931, 520, 32, 304},
  {940, 759, 358, 92},
  {1716, 521, 566, 30},
  {1716, 825, 566, 30},
  {2251, 522, 32, 304},
  {1717, 522, 32, 304},
  {1726, 761, 358, 92},
  {1722, 56, 566, 30},
  {1722, 360, 566, 30},
  {2257, 57, 32, 304},
  {1723, 57, 32, 304},
  {78, 48, 32, 330},
  {664, 46, 32, 330},
  {78, 45, 618, 30},
  {78, 348, 618, 30},
  {0, 2272, 3054, 30},
  {2698, 534, 164, 30},
  {2434, 468, 164, 30},
  {2522, 300, 164, 30},
  {2788, 274, 164, 30},
  {2927, 114, 32, 562},
  {103, 1410, 802, 32},
  {295, 822, 164, 30},
  {922, 38, 32, 330},
  {1508, 36, 32, 330},
  {922, 35, 618, 30},
  {922, 338, 618, 30},
  {1680, 52, 32, 330},
  {2266, 50, 32, 330},
  {1680, 49, 618, 30},
  {1680, 352, 618, 30},
  {70, 552, 32, 330},
  {656, 550, 32, 330},
  {70, 549, 618, 30},
  {70, 852, 618, 30},
  {906, 539, 32, 330},
  {1492, 537, 32, 330},
  {906, 536, 618, 30},
  {906, 839, 618, 30},
  {106, 101, 32, 349},
  {0, -6, 32, 2316},
  {106, 422, 1016, 30},
  {1122, 422, 1016, 30},
  {2138, 422, 1016, 30},
  {106, 101, 1016, 30},
  {1122, 101, 1016, 30},
  {2138, 101, 1016, 30},
  {-2, -10, 3054, 30},
  {2388, 101, 32, 349},
  {3044, -2, 32, 2316},
  {0, 2272, 3054, 30},
  {2180, 1452, 32, 349},
  {2180, 2198, 1016, 30},
  {2910, 1652, 32, 572},
  {2180, 1652, 1016, 30},
};
static const MgInst mg_insts[] = {
  {0, 0, 271, 317},
  {1, 0, 227, 721},
  {1, 0, 357, 721},
  {1, 0, 487, 721},
  {1, 0, 617, 721},
  {1, 0, 747, 721},
  {1, 0, 877, 721},
  {1, 0, 1007, 721},
  {1, 0, 1137, 721},
  {1, 0, 1267, 721},
  {2, 0, 1299, 321},
  {2, 0, 681, 283},
  {2, 0, 882, 328},
  {2, 0, 1100, 278},
  {3, 0, 2540, 1754},
  {4, 0, 2164, 639},
  {5, 0, 2006, 608},
  {2, 0, 1523, 275},
  {2, 0, 1747, 322},
  {2, 0, 1941, 272},
  {6, 0, 2206, 329},
  {6, 0, 1890, 1089},
  {3, 0, 2272, 837},
  {7, 0, 0, 0},
  {0, 0, 1184, 1640},
  {0, 0, 1306, 1778},
  {0, 0, 1452, 1688},
  {0, 0, 1604, 1652},
  {0, 0, 1520, 1736},
  {0, 0, 1218, 1016},
  {0, 0, 1517, 1071},
  {0, 0, 1848, 916},
  {0, 0, 1412, 844},
  {0, 0, 1124, 894},
  {0, 0, 1938, 1064},
  {0, 0, 1136, 1094},
  {0, 0, 712, 782},
  {0, 0, 697, 606},
  {0, 0, 587, 849},
  {0, 0, 167, 611},
  {0, 0, 104, 729},
  {0, 0, 938, 878},
  {0, 0, 1790, 866},
  {0, 0, 1984, 836},
  {0, 0, 1864, 1740},
  {0, 0, 1108, 1718},
  {1, 0, 310, 666},
  {2, 0, 2927, 349},
  {3, 0, 694, 358},
  {4, 0, 1095, 334},
  {5, 0, 2153, 384},
  {6, 0, 1999, 375},
  {7, 0, 365, 285},
  {8, 0, -84, 352},
  {9, 0, 3367, 1459},
  {10, 0, 2479, -106},
  {2, 0, 1437, 1347},
  {11, 0, 1320, 2150},
  {11, 0, 1134, 2006},
  {11, 0, 1418, 1932},
  {11, 0, 1716, 1862},
  {11, 0, 1952, 1726},
  {11, 0, 1738, 1624},
  {11, 0, 242, 1167},
  {11, 0, 372, 1167},
  {11, 0, 502, 1167},
  {11, 0, 632, 1167},
  {11, 0, 762, 1167},
  {11, 0, 892, 1167},
  {11, 0, 1022, 1167},
  {11, 0, 1152, 1167},
  {9, 0, 1335, 1054},
  {12, 0, 105, 131},
  {13, 0, 0, 0},
  {0, 0, 1716, 2279},
  {1, 0, 2277, 670},
  {1, 0, 2121, 668},
  {2, 0, 2162, 1289},
  {3, 0, 445, 558},
  {4, 0, 1131, 734},
  {4, 0, 1261, 734},
  {4, 0, 1391, 734},
  {5, 0, 1049, 383},
  {6, 0, 479, 521},
  {7, 0, 2540, 1754},
  {5, 0, 1200, 382},
  {1, 0, 1446, 1356},
  {1, 0, 1224, 1356},
  {5, 0, 1758, 1316},
  {5, 0, 1863, 1316},
  {8, 0, 128, 2206},
  {9, 0, 219, 740},
  {10, 0, 364, 707},
  {11, 0, 0, 0},
  {0, 0, 2328, 873},
  {1, 0, 386, 202},
  {2, 0, -175, 1094},
  {3, 0, -82, 352},
  {4, 0, 3258, 1768},
  {5, 0, 2192, 309},
  {6, 0, 2056, 277},
  {7, 0, 580, 361},
  {8, 0, 307, 326},
  {9, 0, 1725, 201},
  {9, 0, 2259, 255},
  {10, 0, 1544, 276},
  {10, 0, 952, 622},
  {11, 0, 273, 213},
  {1, 0, 1186, 202},
  {7, 0, 1380, 361},
  {1, 0, 390, 667},
  {7, 0, 584, 826},
  {1, 0, 1192, 663},
  {7, 0, 1386, 822},
  {1, 0, 1978, 665},
  {7, 0, 2172, 824},
  {12, 0, 0, 0},
  {0, 0, 172, 281},
  {1, 0, 434, 254},
  {2, 0, -175, 1094},
  {3, 0, 3258, 1768},
  {4, 0, 1540, 897},
  {5, 0, 1425, 865},
  {6, 0, 521, 349},
  {7, 0, 207, -136},
  {8, 0, 1166, -184},
  {9, 0, 801, 227},
  {10, 0, 403, 481},
  {11, 0, 513, 6},
  {12, 0, 8, 236},
  {13, 0, 3164, 466},
  {14, 0, 332, 267},
  {15, 0, 777, 1324},
  {16, 0, 378, 252},
  {10, 0, 404, 961},
  {12, 0, 1597, 244},
  {17, 0, 0, 0},
  {0, 0, 2183, 255},
  {1, 0, 260, 355},
  {2, 0, 445, 573},
  {3, 0, 65, 1130},
  {4, 0, 1088, -246},
  {5, 0, 2540, 1754},
  {3, 0, 340, 1240},
  {3, 0, 656, 1328},
  {3, 0, 860, 1270},
  {3, 0, 1050, 1222},
  {3, 0, 1242, 1168},
  {3, 0, 1464, 1166},
  {3, 0, 1698, 1166},
  {6, 0, 2348, 371},
  {7, 0, 1658, 229},
  {7, 0, 1734, 188},
  {7, 0, 1814, 233},
  {7, 0, 1896, 191},
  {8, 0, 1655, 353},
  {9, 0, 1741, 353},
  {10, 0, 1835, 353},
  {11, 0, 1923, 353},
  {12, 0, 2056, 279},
  {7, 0, 1984, 222},
  {7, 0, 2345, 211},
  {13, 0, 1520, 227},
  {13, 0, 1025, 206},
  {13, 0, 1441, 196},
  {13, 0, 310, 238},
  {13, 0, 395, 205},
  {13, 0, 718, 201},
  {13, 0, 861, 222},
  {13, 0, 935, 191},
  {14, 0, 0, 0},
};
static const MgAnim mg_anims[] = {
  {0, 0, 1, 0, 0},
  {0, 16, 1, 0, 1},
  {0, 0, 1, 0, 2},
  {0, 0, 1, 0, 3},
  {0, 0, 4, 0, 3},
  {0, 0, 1, 0, 7},
  {12, 0, 1, 0, 8},
  {0, 0, 1, 0, 9},
  {0, 0, 1, 0, 10},
  {0, 0, 1, 0, 11},
  {0, 0, 4, 0, 12},
  {0, 0, 1, 0, 16},
  {0, 0, 1, 0, 10},
  {0, 0, 1, 0, 17},
  {0, 16, 1, 0, 18},
  {0, 0, 1, 0, 19},
  {0, 16, 1, 0, 20},
  {0, 0, 1, 0, 21},
  {0, 16, 1, 0, 22},
  {0, 0, 1, 0, 23},
  {0, 16, 1, 0, 24},
  {0, 0, 1, 0, 25},
  {0, 16, 1, 0, 26},
  {0, 0, 1, 0, 3},
  {0, 0, 1, 0, 9},
  {0, 0, 2, 0, 27},
  {0, 16, 2, 0, 29},
  {0, 0, 1, 0, 2},
  {0, 0, 1, 0, 31},
  {0, 0, 1, 0, 11},
  {0, 0, 1, 0, 32},
  {0, 16, 1, 0, 33},
  {0, 0, 1, 0, 34},
  {12, 0, 1, 0, 35},
  {0, 0, 1, 0, 10},
  {0, 0, 1, 0, 36},
  {0, 16, 1, 0, 37},
  {0, 0, 1, 0, 2},
  {0, 0, 1, 0, 38},
  {0, 0, 1, 0, 39},
  {0, 0, 4, 0, 3},
  {0, 0, 1, 0, 10},
  {0, 0, 1, 0, 7},
  {12, 0, 1, 0, 8},
  {0, 0, 1, 0, 9},
  {0, 0, 1, 0, 11},
  {0, 0, 1, 0, 10},
  {0, 0, 8, 0, 44},
  {0, 16, 1, 0, 52},
  {0, 0, 1, 0, 2},
  {0, 0, 1, 0, 3},
  {0, 0, 4, 0, 3},
  {0, 0, 1, 0, 7},
  {12, 0, 1, 0, 8},
  {0, 0, 1, 0, 9},
  {0, 0, 2, 0, 54},
  {12, 0, 1, 0, 35},
  {0, 0, 1, 0, 56},
  {0, 0, 1, 0, 57},
  {0, 0, 1, 0, 58},
  {0, 0, 1, 0, 59},
  {0, 16, 1, 0, 60},
  {0, 0, 1, 0, 11},
  {0, 0, 1, 0, 10},
  {0, 0, 8, 0, 61},
  {0, 16, 1, 0, 52},
  {0, 0, 1, 0, 2},
  {0, 0, 4, 0, 3},
  {0, 0, 1, 0, 69},
  {12, 0, 1, 0, 70},
  {0, 0, 1, 0, 9},
  {0, 0, 2, 0, 71},
  {12, 0, 1, 0, 35},
  {0, 0, 1, 0, 56},
  {0, 0, 1, 0, 73},
  {0, 0, 1, 0, 74},
  {0, 0, 1, 0, 75},
  {0, 0, 1, 0, 76},
  {0, 0, 1, 0, 77},
  {0, 0, 1, 0, 73},
  {0, 0, 2, 0, 78},
  {0, 0, 2, 0, 27},
  {0, 16, 2, 0, 29},
  {0, 0, 1, 0, 80},
  {0, 16, 1, 0, 81},
  {12, 0, 4, 0, 82},
  {12, 16, 4, 0, 86},
  {0, 0, 1, 0, 11},
  {0, 0, 1, 0, 90},
  {0, 0, 1, 0, 10},
  {0, 0, 1, 0, 91},
  {0, 16, 1, 0, 92},
  {12, 0, 1, 0, 93},
  {0, 0, 1, 0, 2},
  {0, 0, 1, 0, 3},
  {0, 0, 4, 0, 3},
  {0, 0, 1, 0, 7},
  {12, 0, 1, 0, 8},
  {13, 0, 1, 0, 94},
  {14, 0, 1, 0, 95},
  {0, 0, 1, 0, 3},
  {12, 0, 1, 0, 96},
  {13, 0, 1, 0, 97},
  {14, 0, 1, 0, 98},
  {15, 0, 1, 0, 99},
  {0, 0, 1, 0, 100},
  {12, 0, 1, 0, 101},
  {0, 0, 1, 0, 102},
  {12, 0, 1, 0, 103},
  {0, 0, 1, 0, 104},
  {12, 0, 1, 0, 105},
  {0, 0, 1, 0, 106},
  {12, 0, 1, 0, 107},
  {0, 0, 1, 0, 108},
  {0, 0, 1, 0, 3},
  {12, 0, 1, 0, 96},
  {13, 0, 1, 0, 97},
  {14, 0, 1, 0, 98},
  {15, 0, 1, 0, 99},
  {0, 0, 1, 0, 11},
};
static const MgObj mg_objs[] = {
  {0, 2, 0, 112, 119, 56, 59},
  {2, 1, 0, 130, 114, 65, 57},
  {3, 1, 0, 68, 114, 34, 57},
  {4, 1, 0, 68, 114, 34, 57},
  {5, 2, 0, 94, 98, 44, 45},
  {7, 1, 0, 159, 168, 79, 84},
  {8, 1, 0, 103, 124, 47, 57},
  {9, 1, 0, 1024, 768, 0, 0},
  {10, 1, 0, 14, 14, 7, 7},
  {11, 1, 0, 69, 8, 34, 4},
  {12, 1, 0, 103, 124, 47, 57},
  {13, 2, 0, 112, 119, 37, 69},
  {15, 2, 0, 112, 119, 46, 51},
  {17, 2, 0, 112, 119, 76, 85},
  {19, 2, 0, 71, 40, 67, 30},
  {21, 2, 0, 112, 119, 37, 69},
  {23, 1, 0, 68, 114, 34, 57},
  {24, 1, 0, 159, 168, 79, 84},
  {25, 2, 0, 168, 168, 82, 84},
  {27, 1, 0, 130, 114, 65, 57},
  {28, 1, 0, 32, 314, 0, 0},
  {29, 1, 0, 1024, 768, 0, 0},
  {30, 2, 0, 142, 142, 70, 141},
  {32, 2, 0, 92, 92, 46, 91},
  {34, 1, 0, 103, 124, 47, 57},
  {35, 2, 0, 112, 147, 56, 73},
  {37, 1, 0, 130, 114, 65, 57},
  {38, 1, 0, 82, 76, 41, 38},
  {39, 1, 0, 36, 33, 18, 16},
  {40, 1, 0, 68, 114, 34, 57},
  {41, 1, 0, 103, 124, 47, 57},
  {42, 2, 0, 94, 98, 44, 45},
  {44, 1, 0, 159, 168, 79, 84},
  {45, 1, 0, 1024, 768, 0, 0},
  {46, 1, 0, 103, 124, 47, 57},
  {47, 2, 0, 130, 187, 65, 91},
  {49, 1, 0, 130, 114, 65, 57},
  {50, 1, 0, 68, 114, 34, 57},
  {51, 1, 0, 68, 114, 34, 57},
  {52, 2, 0, 94, 98, 44, 45},
  {54, 1, 0, 159, 168, 79, 84},
  {55, 2, 0, 92, 92, 46, 91},
  {57, 1, 0, 406, 32, 203, 16},
  {58, 1, 0, 72, 216, 36, 108},
  {59, 1, 0, 106, 224, 53, 112},
  {60, 2, 0, 144, 165, 72, 81},
  {62, 1, 0, 1024, 768, 0, 0},
  {63, 1, 0, 103, 124, 47, 57},
  {64, 2, 0, 130, 187, 65, 91},
  {66, 1, 0, 130, 114, 65, 57},
  {67, 1, 0, 68, 114, 34, 57},
  {68, 2, 0, 94, 98, 44, 45},
  {70, 1, 0, 159, 168, 79, 84},
  {71, 2, 0, 92, 92, 46, 91},
  {73, 1, 0, 406, 32, 203, 16},
  {74, 1, 0, 106, 216, 53, 108},
  {75, 1, 0, 22, 509, 11, 254},
  {76, 1, 0, 816, 24, 408, 12},
  {77, 1, 0, 1028, 24, 514, 12},
  {78, 1, 0, 22, 493, 11, 246},
  {79, 1, 0, 106, 216, 53, 108},
  {80, 1, 0, 144, 165, 71, 81},
  {81, 2, 0, 168, 168, 82, 84},
  {83, 4, 0, 130, 187, 65, 91},
  {87, 1, 0, 1024, 768, 0, 0},
  {88, 1, 0, 159, 168, 77, 105},
  {89, 1, 0, 103, 124, 47, 57},
  {90, 3, 0, 112, 119, 56, 59},
  {93, 1, 0, 130, 114, 65, 57},
  {94, 1, 0, 68, 114, 34, 57},
  {95, 1, 0, 68, 114, 34, 57},
  {96, 4, 0, 94, 98, 44, 45},
  {100, 5, 0, 68, 114, 34, 57},
  {105, 2, 0, 122, 127, 63, 58},
  {107, 2, 0, 122, 127, 63, 58},
  {109, 2, 0, 122, 127, 63, 58},
  {111, 2, 0, 122, 127, 63, 58},
  {113, 1, 0, 64, 272, 30, 127},
  {114, 5, 0, 68, 114, 34, 57},
  {119, 1, 0, 1024, 768, 0, 0},
};
static const uint16_t mg_screens[] = {
  230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
  65535, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 65535,
  252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
  264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275,
  276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 65535,
  287, 288, 289, 65535, 290, 291, 292, 293, 294, 295, 296, 297,
  65535, 298, 299, 300, 65535, 65535, 301, 302, 65535, 65535, 303, 304,
  305, 306, 307, 308, 309, 310, 311, 65535, 312, 313, 314, 65535,
  65535, 315, 316, 317, 318, 319, 320, 321, 322, 323,
};
static const MgLevel mg_levels[MGL_COUNT] = {
  {2400, 960, 3, 2, 0, 0, 26, 0, 24, 0, 8, 276, 306},
  {3072, 2304, 4, 5, 6, 26, 12, 24, 50, 8, 14, 331, 348},
  {3072, 2304, 4, 5, 26, 38, 28, 74, 20, 22, 12, 331, 285},
  {3072, 2304, 4, 5, 46, 66, 33, 94, 23, 34, 13, 277, 215},
  {3072, 2304, 4, 5, 66, 99, 28, 117, 20, 47, 18, 379, 260},
  {3072, 2304, 4, 5, 86, 127, 16, 137, 34, 65, 15, 561, 331},
};

#endif