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.

20.0 KB
Raw Blame
/* Generated by tools/data.py from Jetpack Joyride 1.3.5's own files (Halfbrick). Points, 60ths of a second;
 * weights in hundredths. See the spec for where each number comes from. */
#ifndef JJ_DATA_H
#define JJ_DATA_H
#include <stdint.h>

#define JJ_GRAVITY 0.15f
#define JJ_BOOST 0.36f
#define JJ_FRICTION 0.98f
#define JJ_VSCALAR 0.5f
#define JJ_FIRE_EVERY 2
#define JJ_BULLET_SPEED 15.0f
#define JJ_BULLET_ANGLE 185.0f
#define JJ_BULLET_SPREAD 35.0f
#define JJ_DIST_DIV 18
#define JJ_IMMUNITY_MS 700
#define JJ_DEATH_GRAVITY 0.24f
#define JJ_DEATH_GROUND_FRICTION 0.94f
#define JJ_MIN_BOUNCE 4.0f
#define JJ_START_SPEED 200.0f
#define JJ_END_SPEED 505.0f
#define JJ_SPEED_DIST 2000
#define JJ_PACE_STEPS 16
static const uint16_t jj_pace_from[] = {
  0, 2500, 3000, 3500, 4000, 4500, 5000, 5500, 6000, 6500, 7000, 7500, 8000, 8500, 9000, 9500,
};
static const uint16_t jj_pace_min[] = {
  280, 250, 220, 200, 200, 200, 200, 200, 190, 190, 180, 180, 170, 170, 160, 150,
};
static const uint16_t jj_pace_max[] = {
  470, 420, 390, 350, 320, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230,
};
enum { JJ_SET_DEFAULT, JJ_SET_MISSILE, JJ_SET_COIN, JJ_SET_MECH, JJ_SET_HOG, JJ_SET_BIRD, JJ_SET_GRAVITY, JJ_SET_CFT };
typedef struct { uint16_t prob, imin, imax; uint8_t minc, maxc, coin, zap, mis; } jj_set_t;
static const jj_set_t jj_sets[] = {
  {0, 0, 0, 0, 0, 0, 0, 0}, /* DEFAULT */
  {35, 128, 128, 4, 8, 255, 255, 1}, /* MISSILE_STREAK */
  {15, 0, 0, 2, 4, 1, 255, 255}, /* COIN_STREAK */
  {0, 345, 512, 2, 4, 2, 1, 2}, /* MECH_STREAK */
  {0, 600, 800, 2, 4, 3, 2, 255}, /* HOG_STREAK */
  {0, 220, 270, 2, 4, 4, 3, 3}, /* BIRD_STREAK */
  {0, 400, 400, 2, 4, 5, 4, 4}, /* GRAVITY_STREAK */
  {0, 220, 470, 2, 4, 6, 5, 5}, /* CFT_STREAK */
};
#define JJ_TOKEN_WEIGHT 280
#define JJ_TOKEN_DRIFT 1.8f
#define JJ_TOKEN_FIRST_MIN 200
#define JJ_TOKEN_FIRST_MAX 450
#define JJ_TOKEN_MAX_GAP 1050
#define JJ_TOKEN_PER_KM 3
#define JJ_TOKEN_KM 1000
#define JJ_VEHICLE_RANGE 650
#define JJ_VEHICLE_EXCLUSION 470
#define JJ_VEHICLE_TOPHALF 100
typedef struct { float gravity, initial, boost, final_boost, friction, start, max, increase; uint8_t frames, jumps, weight, set; } jj_vehicle_t;
static const jj_vehicle_t jj_vehicles[] = {
  {0.36f, 6.0f, 0.45f, 0.29f, 0.98f, 200.0f, 1000.0f, 0.22f, 20, 1, 20, 3}, /* mech */
  {0.3f, 6.5f, 0.6f, 0.0f, 0.98f, 400.0f, 6000.0f, 0.4f, 12, 1, 20, 4}, /* hog */
  {0.2f, 5.0f, 0.0f, 0.0f, 0.98f, 250.0f, 1000.0f, 0.09f, 1, 10, 20, 5}, /* profitbird */
  {0.26f, 0.0f, 0.0f, 0.0f, 0.98f, 250.0f, 1000.0f, 0.25f, 0, 0, 20, 6}, /* gravitysuit */
  {96.0f, 0.0f, 8.0f, 0.0f, 0.0f, 250.0f, 1000.0f, 0.25f, 0, 0, 20, 7}, /* teleporter */
};
enum { JJ_PRIZE_COINS_100, JJ_PRIZE_COINS_500, JJ_PRIZE_COINS_1000, JJ_PRIZE_EXPLOSION1, JJ_PRIZE_EXPLOSION2, JJ_PRIZE_EXPLOSION3, JJ_PRIZE_REVIVE, JJ_PRIZE_TOKENS, JJ_PRIZE_DOUBLE_COINS, JJ_PRIZE_START_500M, JJ_PRIZES };
static const uint16_t jj_prize_weight[] = {
  120, 90, 50, 120, 75, 40, 100, 70, 120, 200,
};
/* after a win, the prize's weight times this / 1000 (afterWinProbPercent) */
static const uint16_t jj_prize_after[] = {
  1000, 1000, 1000, 500, 250, 100, 25, 1000, 0, 0,
};
typedef struct { uint16_t sched; uint8_t top, bottom, tophalf, bottomhalf, first, count; } jj_file_t;
static const jj_file_t jj_coin_files[] = {
  {52, 0, 0, 0, 0, 0, 26},
  {129, 0, 0, 0, 0, 26, 26},
  {183, 30, 0, 0, 0, 52, 26},
  {257, 0, 0, 0, 0, 78, 26},
  {323, 0, 0, 0, 0, 104, 26},
  {430, 30, 30, 60, 40, 130, 28},
  {458, 0, 0, 0, 0, 158, 3},
};
/* coin files' patterns: (pattern, schedule) */
static const uint8_t jj_coin_pick[] = {
  0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
  16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 1, 2, 3, 4, 5,
  6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
  22, 23, 24, 25, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
  12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 0, 1,
  2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
  18, 19, 20, 21, 22, 23, 24, 25, 0, 1, 2, 3, 4, 5, 6, 7,
  8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
  24, 25, 26, 27, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
  12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 28, 29,
  30,
};
static const uint16_t jj_coin_pick_sched[] = {
  0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30,
  32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 77, 79, 81, 83, 85, 87,
  89, 91, 93, 95, 97, 99, 101, 103, 105, 107, 109, 111, 113, 115, 117, 119,
  121, 123, 125, 127, 131, 133, 135, 137, 139, 141, 143, 145, 147, 149, 151, 153,
  155, 157, 159, 161, 163, 165, 167, 169, 171, 173, 175, 177, 179, 181, 205, 207,
  209, 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, 231, 233, 235, 237, 239,
  241, 243, 245, 247, 249, 251, 253, 255, 271, 273, 275, 277, 279, 281, 283, 285,
  287, 289, 291, 293, 295, 297, 299, 301, 303, 305, 307, 309, 311, 313, 315, 317,
  319, 321, 346, 349, 352, 355, 358, 361, 364, 367, 370, 373, 376, 379, 382, 385,
  388, 391, 394, 397, 400, 403, 406, 409, 412, 415, 418, 421, 424, 427, 452, 454,
  456,
};
static const jj_file_t jj_zap_files[] = {
  {70, 0, 0, 0, 0, 0, 7},
  {201, 0, 30, 0, 0, 7, 7},
  {269, 0, 50, 50, 0, 14, 4},
  {341, 0, 0, 0, 0, 18, 7},
  {448, 40, 40, 0, 0, 25, 7},
  {476, 0, 0, 0, 0, 32, 7},
};
typedef struct { uint16_t sched, min, max; int16_t angle, rotate; uint8_t grow; } jj_zap_t;
static const jj_zap_t jj_zaps[] = {
  {54, 66, 132, 0, 0, 60},
  {56, 96, 128, 0, 0, 0},
  {58, 96, 240, 270, 0, 0},
  {60, 96, 172, 315, 0, 0},
  {62, 96, 172, 45, 0, 0},
  {64, 96, 192, 0, 360, 0},
  {67, 96, 192, 0, -200, 0},
  {185, 66, 96, 0, 0, 60},
  {187, 64, 96, 0, 0, 0},
  {189, 96, 256, 270, 0, 0},
  {191, 96, 150, 315, 0, 0},
  {193, 96, 150, 45, 0, 0},
  {195, 96, 150, 0, 360, 0},
  {198, 96, 150, 0, -200, 0},
  {259, 64, 74, 0, 0, 0},
  {262, 96, 150, 270, 0, 0},
  {264, 96, 96, 45, 0, 0},
  {266, 56, 96, 0, 360, 0},
  {325, 66, 132, 0, 0, 60},
  {327, 96, 128, 0, 0, 0},
  {329, 96, 240, 270, 0, 0},
  {331, 96, 172, 315, 0, 0},
  {333, 96, 172, 45, 0, 0},
  {335, 96, 192, 0, 360, 0},
  {338, 96, 192, 0, -200, 0},
  {432, 60, 90, 0, 0, 60},
  {434, 66, 96, 0, 0, 0},
  {436, 96, 256, 270, 0, 0},
  {438, 96, 118, 315, 0, 0},
  {440, 96, 118, 45, 0, 0},
  {442, 96, 118, 0, 360, 0},
  {445, 96, 118, 0, -200, 0},
  {460, 66, 132, 0, 0, 60},
  {462, 96, 128, 0, 0, 0},
  {464, 96, 240, 270, 0, 0},
  {466, 96, 172, 315, 0, 0},
  {468, 96, 172, 45, 0, 0},
  {470, 96, 192, 0, 360, 0},
  {473, 96, 192, 0, -200, 0},
};
typedef struct { uint16_t sched; float chase, speed; } jj_mis_t;
static const jj_mis_t jj_mis_files[] = {
  {72, 1.2f, 10.0f},
  {75, 1.6f, 10.0f},
  {203, 1.6f, 10.0f},
  {343, 1.2f, 10.0f},
  {450, 1.6f, 10.0f},
  {478, 1.2f, 10.0f},
};
#define JJ_PATTERNS 31
/* coin patterns (patterns, one .txt each): width, height, then rows of bits, the first coin in bit 0 */
static const uint8_t jj_pat_w[] = {
  41, 32, 35, 15, 30, 17, 21, 8, 36, 28, 22, 7, 24, 38, 7, 26, 9, 29, 8, 25, 25, 14, 11, 24, 10, 29, 32, 38, 24, 13, 40,
};
static const uint8_t jj_pat_h[] = {
  5, 5, 4, 3, 9, 6, 9, 5, 9, 9, 9, 6, 5, 3, 7, 9, 5, 5, 7, 9, 5, 11, 9, 3, 5, 2, 5, 5, 2, 3, 7,
};
static const uint16_t jj_pat_off[] = {
  0, 30, 50, 70, 76, 112, 130, 157, 162, 207, 243, 270, 276, 291, 306, 313,
  349, 359, 379, 386, 422, 442, 464, 482, 491, 501, 509, 529, 554, 560, 566,
};
static const uint8_t jj_pat_bits[] = {
  0, 0, 0, 240, 255, 1, 0, 0, 128, 15, 0, 0, 0, 0, 124, 0, 0, 0, 0, 224, 3, 0, 0, 0,
  255, 31, 0, 0, 0, 0, 56, 142, 227, 56, 112, 28, 199, 113, 224, 56, 142, 227, 112, 28, 199, 113, 56, 142,
  227, 56, 0, 128, 15, 0, 0, 0, 124, 240, 1, 0, 224, 3, 0, 62, 0, 31, 0, 0, 192, 7, 254, 63,
  255, 127, 254, 63, 252, 1, 192, 31, 254, 3, 224, 63, 252, 1, 192, 31, 0, 0, 0, 0, 0, 0, 0, 0,
  0, 240, 7, 0, 0, 248, 15, 0, 0, 240, 7, 0, 0, 0, 0, 0, 85, 85, 0, 170, 170, 0, 85, 85,
  0, 170, 170, 0, 85, 85, 0, 170, 170, 0, 17, 17, 17, 68, 68, 4, 17, 17, 17, 68, 68, 4, 17, 17,
  17, 68, 68, 4, 17, 17, 17, 68, 68, 4, 17, 17, 17, 255, 255, 255, 255, 255, 15, 0, 0, 0, 0, 240,
  0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 240, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 240, 0, 0,
  0, 0, 0, 15, 0, 0, 0, 0, 240, 0, 0, 0, 0, 0, 15, 0, 252, 15, 0, 192, 3, 240, 0, 60,
  0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 15, 192, 3, 240, 0, 0,
  252, 15, 0, 15, 0, 0, 48, 0, 0, 192, 0, 0, 0, 3, 0, 0, 12, 0, 0, 48, 0, 0, 192, 0,
  0, 0, 3, 0, 0, 60, 54, 127, 127, 62, 28, 8, 207, 156, 147, 41, 165, 148, 231, 189, 247, 41, 149, 66,
  47, 165, 68, 255, 0, 240, 15, 0, 0, 0, 0, 0, 0, 0, 252, 3, 192, 63, 48, 103, 103, 96, 103, 103,
  48, 126, 0, 0, 0, 255, 0, 0, 0, 126, 0, 0, 0, 0, 252, 0, 0, 0, 254, 1, 0, 0, 252, 0,
  0, 0, 0, 248, 1, 0, 0, 252, 3, 0, 0, 248, 1, 233, 0, 41, 1, 239, 0, 41, 1, 233, 0, 206,
  92, 114, 21, 33, 201, 10, 21, 33, 73, 123, 21, 33, 73, 66, 0, 206, 92, 122, 21, 31, 62, 124, 248, 124,
  62, 31, 63, 0, 248, 1, 192, 1, 7, 0, 0, 198, 0, 0, 0, 40, 0, 0, 0, 16, 0, 0, 0, 40,
  0, 0, 0, 198, 0, 0, 192, 1, 7, 0, 63, 0, 248, 1, 15, 192, 3, 0, 16, 32, 4, 0, 32, 16,
  8, 0, 64, 8, 16, 0, 128, 7, 224, 1, 0, 0, 192, 0, 192, 0, 24, 6, 24, 6, 195, 48, 195, 48,
  24, 6, 24, 6, 192, 0, 192, 0, 64, 0, 192, 0, 192, 1, 255, 3, 255, 7, 255, 3, 192, 1, 192, 0,
  64, 0, 252, 255, 63, 255, 255, 255, 252, 255, 63, 135, 3, 159, 3, 183, 3, 231, 3, 135, 3, 85, 85, 85,
  21, 85, 85, 85, 21, 8, 34, 8, 34, 28, 54, 28, 54, 62, 62, 62, 62, 54, 28, 54, 28, 34, 8, 34,
  8, 8, 8, 8, 8, 8, 28, 28, 28, 28, 28, 62, 62, 62, 62, 62, 54, 54, 54, 54, 54, 34, 34, 34,
  34, 34, 255, 255, 255, 255, 255, 255, 255, 31, 255, 31, 255, 31, 255, 255, 1, 0, 0, 0, 0, 0, 0, 0,
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 255,
  255,
};
#define JJ_LASER_SCHED 481
#define JJ_LASER_PATTERNS 29
typedef struct { uint16_t time, sched; uint8_t first, count; } jj_lpat_t;
typedef struct { int8_t y0, y1; uint16_t on, off, wait, move; } jj_beam_t;
static const jj_lpat_t jj_lpats[] = {
  {180, 489, 0, 1}, /* SingleFire Middle */
  {180, 492, 1, 1}, /* SingleFire Upper */
  {180, 495, 2, 1}, /* SingleFire Lower */
  {180, 498, 3, 3}, /* Whole Top */
  {180, 501, 6, 3}, /* Whole Bottom */
  {180, 504, 9, 2}, /* Top and Bottom Blockers */
  {180, 507, 11, 4}, /* Top and Bottom tighter */
  {180, 510, 15, 5}, /* Top Gap Only */
  {180, 513, 20, 5}, /* Bottom Gap only */
  {180, 516, 25, 2}, /* Top and Bottom with gaps */
  {340, 519, 27, 7}, /* Top to bottom switch out */
  {340, 522, 34, 7}, /* Bottom to top switch out */
  {340, 525, 41, 7}, /* top and bottom to middle */
  {340, 528, 48, 7}, /* MIddle to top and bottom */
  {160, 531, 55, 4}, /* Middle Top Gap */
  {160, 534, 59, 4}, /* Middle Bottom Gap */
  {160, 537, 63, 3}, /* 3fer SPLITTER */
  {460, 539, 66, 1}, /* SWEEP UP AND DOWN */
  {460, 541, 67, 1}, /* SWEEP DOWN AND UP */
  {380, 543, 68, 7}, /* The STAGER!! */
  {380, 545, 75, 7}, /* The STAGER2!! */
  {380, 547, 82, 7}, /* The STAGER2REVERSE */
  {460, 549, 89, 2}, /* CROSS SWEEPER */
  {180, 551, 91, 6}, /* cascade inwards */
  {340, 553, 97, 7}, /* INWARDS CRUSHER */
  {420, 555, 104, 7}, /* QUICK SCATTER */
  {420, 557, 111, 7}, /* QUICK SCATTER2 */
  {420, 559, 118, 7}, /* QUICK SCATTER3 */
  {420, 561, 125, 7}, /* QUICK SCATTER4 */
};
static const jj_beam_t jj_beams[] = {
  {0, 0, 1, 0, 0, 0},
  {60, 60, 1, 0, 0, 0},
  {-60, -60, 1, 0, 0, 0},
  {120, 120, 1, 0, 0, 0},
  {80, 80, 1, 0, 0, 0},
  {40, 40, 1, 0, 0, 0},
  {-120, -120, 1, 0, 0, 0},
  {-80, -80, 1, 0, 0, 0},
  {-40, -40, 1, 0, 0, 0},
  {125, 125, 1, 0, 0, 0},
  {-125, -125, 1, 0, 0, 0},
  {125, 125, 1, 0, 0, 0},
  {85, 85, 1, 0, 0, 0},
  {-125, -125, 1, 0, 0, 0},
  {-85, -85, 1, 0, 0, 0},
  {-125, -125, 1, 0, 0, 0},
  {-85, -85, 1, 0, 0, 0},
  {-45, -45, 1, 0, 0, 0},
  {-5, -5, 1, 0, 0, 0},
  {35, 35, 1, 0, 0, 0},
  {125, 125, 1, 0, 0, 0},
  {85, 85, 1, 0, 0, 0},
  {45, 45, 1, 0, 0, 0},
  {5, 5, 1, 0, 0, 0},
  {-35, -35, 1, 0, 0, 0},
  {70, 70, 1, 0, 0, 0},
  {-70, -70, 1, 0, 0, 0},
  {120, 120, 60, 1000, 0, 0},
  {80, 80, 60, 1000, 0, 0},
  {40, 40, 60, 1000, 0, 0},
  {0, 0, 60, 120, 0, 0},
  {-40, -40, 60, 1000, 180, 0},
  {-80, -80, 60, 1000, 180, 0},
  {-120, -120, 60, 1000, 180, 0},
  {-120, -120, 60, 1000, 0, 0},
  {-80, -80, 60, 1000, 0, 0},
  {-40, -40, 60, 1000, 0, 0},
  {0, 0, 60, 120, 0, 0},
  {40, 40, 60, 1000, 180, 0},
  {80, 80, 60, 1000, 180, 0},
  {120, 120, 60, 1000, 180, 0},
  {-120, -120, 60, 1000, 0, 0},
  {-80, -80, 60, 1000, 0, 0},
  {120, 120, 60, 1000, 0, 0},
  {80, 80, 60, 1000, 0, 0},
  {40, 40, 60, 1000, 180, 0},
  {-40, -40, 60, 1000, 180, 0},
  {0, 0, 60, 1000, 180, 0},
  {-40, -40, 60, 1000, 0, 0},
  {40, 40, 60, 1000, 0, 0},
  {0, 0, 60, 1000, 0, 0},
  {-120, -120, 60, 1000, 180, 0},
  {-80, -80, 60, 1000, 180, 0},
  {120, 120, 60, 1000, 180, 0},
  {80, 80, 60, 1000, 180, 0},
  {-125, -125, 1, 0, 0, 0},
  {-85, -85, 1, 0, 0, 0},
  {-45, -45, 1, 0, 0, 0},
  {125, 125, 1, 0, 0, 0},
  {125, 125, 1, 0, 0, 0},
  {85, 85, 1, 0, 0, 0},
  {45, 45, 1, 0, 0, 0},
  {-125, -125, 1, 0, 0, 0},
  {127, 127, 1, 0, 0, 0},
  {-127, -127, 1, 0, 0, 0},
  {0, 0, 1, 0, 0, 0},
  {-125, 125, 60, 100, 0, 350},
  {125, -125, 60, 100, 30, 350},
  {120, 120, 40, 10000, 160, 0},
  {80, 80, 40, 10000, 160, 0},
  {40, 40, 40, 10000, 0, 0},
  {0, 0, 40, 200, 0, 0},
  {-40, -40, 40, 10000, 240, 0},
  {-80, -80, 40, 10000, 80, 0},
  {-120, -120, 40, 10000, 80, 0},
  {120, 120, 40, 10000, 0, 0},
  {80, 80, 40, 200, 0, 0},
  {40, 40, 40, 10000, 240, 0},
  {0, 0, 40, 10000, 160, 0},
  {-40, -40, 40, 10000, 160, 0},
  {-80, -80, 40, 10000, 80, 0},
  {-120, -120, 40, 10000, 80, 0},
  {-120, -120, 40, 10000, 0, 0},
  {-80, -80, 40, 200, 0, 0},
  {-40, -40, 40, 10000, 240, 0},
  {0, 0, 40, 10000, 160, 0},
  {40, 40, 40, 10000, 160, 0},
  {80, 80, 40, 10000, 80, 0},
  {120, 120, 40, 10000, 80, 0},
  {-125, 125, 60, 100, 30, 350},
  {125, -125, 60, 100, 30, 350},
  {125, 125, 1, 0, 0, 0},
  {95, 95, 1, 0, 20, 0},
  {65, 65, 1, 0, 40, 0},
  {-125, -125, 1, 0, 0, 0},
  {-95, -95, 1, 0, 20, 0},
  {-65, -65, 1, 0, 40, 0},
  {120, 120, 40, 10000, 0, 0},
  {80, 80, 40, 10000, 100, 0},
  {40, 40, 40, 10000, 200, 0},
  {0, 0, 40, 10000, 200, 0},
  {-40, -40, 40, 10000, 200, 0},
  {-80, -80, 40, 10000, 100, 0},
  {-120, -120, 40, 10000, 0, 0},
  {120, 120, 40, 10000, 45, 0},
  {80, 80, 40, 10000, 135, 0},
  {40, 40, 40, 10000, 225, 0},
  {0, 0, 40, 10000, 280, 0},
  {-40, -40, 40, 10000, 0, 0},
  {-80, -80, 40, 10000, 90, 0},
  {-120, -120, 40, 10000, 180, 0},
  {120, 120, 40, 10000, 0, 0},
  {80, 80, 40, 10000, 90, 0},
  {40, 40, 40, 10000, 180, 0},
  {0, 0, 40, 10000, 45, 0},
  {-40, -40, 40, 10000, 280, 0},
  {-80, -80, 40, 10000, 225, 0},
  {-120, -120, 40, 10000, 135, 0},
  {120, 120, 40, 10000, 45, 0},
  {80, 80, 40, 10000, 135, 0},
  {40, 40, 40, 10000, 225, 0},
  {0, 0, 40, 10000, 280, 0},
  {-40, -40, 40, 10000, 180, 0},
  {-80, -80, 40, 10000, 90, 0},
  {-120, -120, 40, 10000, 0, 0},
  {120, 120, 40, 10000, 225, 0},
  {80, 80, 40, 10000, 135, 0},
  {40, 40, 40, 10000, 45, 0},
  {0, 0, 40, 10000, 0, 0},
  {-40, -40, 40, 10000, 90, 0},
  {-80, -80, 40, 10000, 180, 0},
  {-120, -120, 40, 10000, 280, 0},
};
/* weights by distance: (from metres, weight) pairs, each list ended by 0xffff */
static const uint16_t jj_sched[] = {
  0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
  0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
  0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
  0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
  0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
  0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
  0, 500, 65535, 0, 0, 500, 65535, 0, 50, 700, 65535, 0, 0, 0, 65535, 0,
  0, 2000, 65535, 0, 0, 600, 65535, 0, 0, 300, 65535, 0, 0, 300, 65535, 0,
  0, 0, 400, 300, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 8000, 65535, 0,
  0, 0, 200, 1500, 65535, 0, 0, 2000, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 600, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 400,
  65535, 0, 0, 0, 65535, 0, 0, 2000, 65535, 0, 0, 600, 65535, 0, 0, 300,
  65535, 0, 0, 300, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 0, 400, 300,
  65535, 0, 0, 8000, 65535, 0, 0, 2000, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 600, 65535, 0, 0, 0, 200, 1000, 65535, 0, 0, 2600, 65535, 0,
  0, 600, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 8000, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0, 0, 500,
  65535, 0, 0, 500, 65535, 0, 50, 700, 65535, 0, 0, 0, 65535, 0, 0, 2000,
  65535, 0, 0, 600, 65535, 0, 0, 300, 65535, 0, 0, 300, 65535, 0, 0, 0,
  400, 300, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 8000, 65535, 0, 0, 0,
  200, 1500, 65535, 0, 0, 1000, 20, 0, 65535, 0, 0, 1000, 20, 0, 65535, 0,
  0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500,
  65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0,
  20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0,
  0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500,
  65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0,
  20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0,
  0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500,
  65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0,
  20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0,
  0, 0, 20, 500, 65535, 0, 0, 0, 20, 500, 65535, 0, 0, 400, 65535, 0,
  0, 0, 65535, 0, 0, 2000, 65535, 0, 0, 600, 65535, 0, 0, 300, 65535, 0,
  0, 300, 65535, 0, 0, 0, 400, 300, 65535, 0, 0, 0, 400, 300, 65535, 0,
  0, 8000, 65535, 0, 0, 2500, 65535, 0, 0, 500, 65535, 0, 0, 500, 65535, 0,
  0, 500, 65535, 0, 0, 400, 65535, 0, 0, 0, 65535, 0, 0, 2000, 65535, 0,
  0, 600, 65535, 0, 0, 300, 65535, 0, 0, 300, 65535, 0, 0, 0, 400, 300,
  65535, 0, 0, 0, 400, 300, 65535, 0, 0, 8000, 65535, 0, 0, 0, 200, 1500,
  65535, 0, 0, 0, 400, 1000, 2000, 600, 3000, 400, 4000, 200, 5000, 100, 6000, 0,
  65535, 0, 400, 400, 800, 0, 65535, 0, 400, 200, 800, 0, 65535, 0, 400, 200,
  800, 0, 65535, 0, 400, 200, 800, 0, 65535, 0, 400, 200, 800, 0, 65535, 0,
  800, 400, 1500, 0, 65535, 0, 800, 400, 1500, 0, 65535, 0, 800, 200, 1500, 0,
  65535, 0, 800, 200, 1500, 0, 65535, 0, 1300, 400, 2000, 0, 65535, 0, 1300, 200,
  2000, 0, 65535, 0, 1300, 200, 2000, 0, 65535, 0, 1300, 200, 2000, 0, 65535, 0,
  1300, 200, 2000, 0, 65535, 0, 1300, 200, 2000, 0, 65535, 0, 1300, 200, 2000, 0,
  65535, 0, 2000, 400, 65535, 0, 2000, 100, 65535, 0, 2000, 200, 65535, 0, 2000, 200,
  65535, 0, 2000, 100, 65535, 0, 2000, 100, 65535, 0, 3000, 400, 65535, 0, 2600, 400,
  65535, 0, 2600, 200, 65535, 0, 2000, 100, 65535, 0, 2000, 100, 65535, 0, 2000, 100,
  65535, 0, 2000, 100, 65535, 0,
};
#endif