#ifndef _FLASH_H #define _FLASH_H flash signed int bulletVX[NUM_BULLET_TYPES] [NUM_ANGLES] ={ //bullet0: hi speed bullet 0,-2,-3,-2,0,2,3,2, //bullet1: med speed dumbfire missile 0,-2,-3,-2,0,2,3,2, //bullet2: kinda slow smart bomb 0,-1,-2,-1,0,1,2,1, //bullet3: med speed homing missile 0,-2,-3,-2,0,2,3,2 }; flash signed int bulletVY[NUM_BULLET_TYPES] [NUM_ANGLES] ={ -3,-2,0,2,3,2,0,-2, -3,-2,0,2,3,2,0,-2, -2,-1,0,1,2,1,0,-1, -3,-2,0,2,3,2,0,-2 }; flash char bulletTable[NUM_BULLET_TYPES] [NUM_BULLCHARS] = { //damage/lifetime/turn/radius //Bullet Type 0 : single dot 20, 25, 0, 2, //Bullet Type 1 : regular missile (dumb fire) 25, 20, 0, 3, //Bullet Type 2 : Cross Smartbomb (slow long range seeking bomb) 35, 35, 6, 2, //Bullet Type 3 : staple missile (short range seeking missile) 25, 35, 3, 2 //Special type 4: booster //special type 5: repair }; flash unsigned int shipTable[NUM_SHIP_TYPES] [NUM_SHIPCHARS] = { //vmax/w1/w2/f1/f2/rad/turn/life //Ship Type 0: Space Superiority Fighter --W1=bullets 1, W2=boost 4 300,0,4,10,40,4,8,200, //Ship Type 1: Heavy Capital Ship -- W1= SmartBomb 2 W2=Self Repair 5 180,2,5,35,100,5,3,300, //Ship Type 2 Assault Corvette --W1=Dumbfire Missile 1 W2=Staple Seeking Missile 3 250,1,3,30,50,4,6,250 }; flash signed int shipXaccel[NUM_SHIP_TYPES][NUM_ANGLES] = { //Ship Type 0 0,-22,-32,-22,0,22,32,22, //Ship Type 1 0,-15,-20,-15,0,15,20,15, //Ship Type 2 0,-18,-25,-18,0,18,25,18 }; //Ship Yaccel table flash signed int shipYaccel[NUM_SHIP_TYPES][NUM_ANGLES] = { //Ship Type 0 -32,-22,0,22,32,22,0,-22, //Ship Type 1 -16,-11,0,11,16,11,0,-11, //Ship Type 2 -25,-18,0,18,25,18,0,-18 }; //title flash char title[8][5] = { //line0 0b00111111,0b00000000,0b00011110,0b00000000,0b00000000, //line 1 0b01100000,0b00000000,0b00011011,0b00000000,0b00000000, //line 2 0b01111011,0b11111111,0b11011001,0b11011111,0b11000000, //line 3 0b01111100,0b10010101,0b01011001,0b01010100,0b01000000, //line4 0b00111110,0b10011101,0b10011001,0b01010110,0b01000000, //line5 0b00011110,0b10011101,0b01011001,0b01010100,0b01000000, //line6 0b00000110,0b10010101,0b01011011,0b01010100,0b01000000, //line7 0b11111100,0b10010101,0b01111110,0b01110111,0b01110000 }; //title logo flash char logo[11][2] ={ 0b00001110,0b00000000, 0b00110001,0b11110000, 0b01000000,0b01010000, 0b01000000,0b01100000, 0b10000000,0b10100000, 0b10000001,0b00100000, 0b10000010,0b00100000, 0b01000100,0b01000000, 0b01001000,0b01000000, 0b10110001,0b10000000, 0b11001110,0b00000000 }; //planet bitmap flash char planetBitmap[NUM_PLANET_LINES] = { 0b00011000, 0b01111110, 0b01111110, 0b11111111, 0b11111111, 0b01111110, 0b01111110, 0b00011000 }; //explosion bitmaps flash char explodeBitmaps[5][NUM_SHIP_LINES] = { // Frame 0 0b00000000, 0b01010100, 0b00111000, 0b01101100, 0b00111000, 0b01010100, 0b00000000, // Frame 1 0b00000000, 0b01010100, 0b00010000, 0b01101100, 0b00010000, 0b01010100, 0b00000000, // Frame 2 0b00000000, 0b00000000, 0b00101000, 0b00010000, 0b00101000, 0b00000000, 0b00000000, // Frame 3 0b00000000, 0b00000000, 0b00010000, 0b00111000, 0b00010000, 0b00000000, 0b00000000, // Frame 4 0b00000000, 0b00000000, 0b00000000, 0b00010000, 0b00000000, 0b00000000, 0b00000000 }; // Bullet Bitmaps flash char bulletBitmaps[NUM_BULLET_TYPES][NUM_ANGLES][NUM_BULLET_LINES] = { // Bullet 0 - Theta: 0 0b01000000, 0b01000000, 0b00000000, // Bullet 0 - Theta: 1 0b10000000, 0b01000000, 0b00000000, // Bullet 0 - Theta: 2 0b00000000, 0b11000000, 0b00000000, // Bullet 0 - Theta: 3 0b00000000, 0b01000000, 0b10000000, // Bullet 0 - Theta: 4 0b00000000, 0b01000000, 0b01000000, // Bullet 0 - Theta: 5 0b00000000, 0b01000000, 0b00100000, // Bullet 0 - Theta: 6 0b00000000, 0b01100000, 0b00000000, // Bullet 0 - Theta: 7 0b00100000, 0b01000000, 0b00000000, // Bullet 1 - Theta: 0 0b01000000, 0b01000000, 0b10100000, // Bullet 1 - Theta: 1 0b10000000, 0b01100000, 0b01000000, // Bullet 1 - Theta: 2 0b00100000, 0b11000000, 0b00100000, // Bullet 1 - Theta: 3 0b01000000, 0b01100000, 0b10000000, // Bullet 1 - Theta: 4 0b10100000, 0b01000000, 0b01000000, // Bullet 1 - Theta: 5 0b01000000, 0b11000000, 0b00100000, // Bullet 1 - Theta: 6 0b10000000, 0b01100000, 0b10000000, // Bullet 1 - Theta: 7 0b00100000, 0b11000000, 0b01000000, // Bullet 2 - Theta: 0 0b10100000, 0b01000000, 0b10100000, // Bullet 2 - Theta: 1 0b01000000, 0b11100000, 0b01000000, // Bullet 2 - Theta: 2 0b10100000, 0b01000000, 0b10100000, // Bullet 2 - Theta: 3 0b01000000, 0b11100000, 0b01000000, // Bullet 2 - Theta: 4 0b10100000, 0b01000000, 0b10100000, // Bullet 2 - Theta: 5 0b01000000, 0b11100000, 0b01000000, // Bullet 2 - Theta: 6 0b10100000, 0b01000000, 0b10100000, // Bullet 2 - Theta: 7 0b01000000, 0b11100000, 0b01000000, // Bullet 3 - Theta: 0 0b01000000, 0b10100000, 0b10100000, // Bullet 3 - Theta: 1 0b11000000, 0b10100000, 0b01000000, // Bullet 3 - Theta: 2 0b01100000, 0b10000000, 0b01100000, // Bullet 3 - Theta: 3 0b01000000, 0b10100000, 0b11000000, // Bullet 3 - Theta: 4 0b10100000, 0b10100000, 0b01000000, // Bullet 3 - Theta: 5 0b01000000, 0b10100000, 0b01100000, // Bullet 3 - Theta: 6 0b11000000, 0b00100000, 0b11000000, // Bullet 3 - Theta: 7 0b01100000, 0b10100000, 0b01000000 }; // Ship Bitmaps flash char shipBitmaps[NUM_SHIP_TYPES][NUM_ANGLES][NUM_SHIP_LINES] = { // Ship 0 - Theta: 0 0b00010000, 0b00111000, 0b00010000, 0b00010000, 0b01111100, 0b00101000, 0b00101000, // Ship 0 - Theta: 1 0b10100000, 0b01000000, 0b10100100, 0b00011100, 0b00011010, 0b00110000, 0b00001000, //ship 0 - theta: 2 0b00000000, 0b00001000, 0b01001110, 0b11111000, 0b01001110, 0b00001000, 0b00000000, //ship 0 - theta: 3 0b00001000, 0b00110000, 0b00011010, 0b00011100, 0b10100100, 0b01000000, 0b10100000, //ship 0 - theta: 4 0b00101000, 0b00101000, 0b01111100, 0b00010000, 0b00010000, 0b00111000, 0b00010000, //ship 0 - theta: 5 0b00100000, 0b00011000, 0b10110000, 0b01110000, 0b01001010, 0b00000100, 0b00001010, //ship 0 - theta: 6 0b00000000, 0b00100000, 0b11100100, 0b00111110, 0b11100100, 0b00100000, 0b00000000, //ship 0 - theta: 7 0b00001010, 0b00000100, 0b01001010, 0b01110000, 0b10110000, 0b00011000, 0b00100000, //ship 1 - theta 0 0b00111000, 0b00111000, 0b00111000, 0b00010000, 0b01010100, 0b01111100, 0b01111100, //ship 1 - theta 1 0b00100000, 0b01110000, 0b11100100, 0b01010010, 0b00001110, 0b00101100, 0b00011000, //ship 1 - theta 2 0b00000000, 0b00001110, 0b11100110, 0b11111110, 0b11100110, 0b00001110, 0b00000000, //ship 1 - theta 3 0b00011000, 0b00101100, 0b00001110, 0b01010010, 0b11100100, 0b01110000, 0b00100000, //ship 1 - theta 4 0b01111100, 0b01111100, 0b01010100, 0b00010000, 0b00111000, 0b00111000, 0b00111000, //ship 1 - theta 5 0b00110000, 0b01101000, 0b11100000, 0b10010100, 0b01001110, 0b00011100, 0b00001000, //ship 1 - theta 6 0b00000000, 0b11100000, 0b11001110, 0b11111110, 0b11001110, 0b11100000, 0b00000000, //ship 1 - theta 7 0b00001000, 0b00011100, 0b01001110, 0b10010100, 0b11100000, 0b01101000, 0b00110000, //ship 2 - theta 0 0b00000000, 0b00101000, 0b01000100, 0b01010100, 0b00111000, 0b00111000, 0b00010000, //ship 2 - theta 1 0b00000000, 0b00111000, 0b01001000, 0b01011100, 0b01111000, 0b00010100, 0b00000000, //ship 2 - theta 2 0b00000000, 0b00110000, 0b01001100, 0b00011110, 0b01001100, 0b00110000, 0b00000000, //ship 2 - theta 3 0b00000000, 0b00010100, 0b01111000, 0b01011100, 0b01001000, 0b00111000, 0b00000000, //ship 2 - theta 4 0b00010000, 0b00111000, 0b00111000, 0b01010100, 0b01000100, 0b00101000, 0b00000000, //ship 2 - theta 5 0b00000000, 0b01010000, 0b00111100, 0b01110100, 0b00100100, 0b00111000, 0b00000000, //ship 2 - theta 6 0b00000000, 0b00011000, 0b01100100, 0b11110000, 0b01100100, 0b00011000, 0b00000000, //ship 2 - theta 7 0b00000000, 0b00111000, 0b00100100, 0b01110100, 0b00111100, 0b01010000, 0b00000000 }; flash signed char XGrav[2*PLANETX][2*PLANETY] = { // X: -20 from planet center. 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, // X: -19 from planet center. 1, 1, 2, 2, 2, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 2, 1, // X: -18 from planet center. 1, 1, 1, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 2, 1, 1, // X: -17 from planet center. 1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 4, 4, 4, 4, 3, 3, 3, 3, 2, 2, 1, // X: -16 from planet center. 1, 2, 2, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 6, 6, 6, 6, 6, 5, 5, 5, 5, 4, 4, 4, 3, 3, 2, 2, 2, 2, // X: -15 from planet center. 2, 2, 2, 2, 2, 2, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 8, 7, 7, 7, 7, 7, 6, 6, 6, 5, 5, 5, 4, 4, 4, 2, 2, 2, 2, 2, // X: -14 from planet center. 2, 2, 2, 2, 2, 3, 3, 4, 5, 5, 6, 6, 6, 7, 7, 8, 8, 8, 9, 9, 9, 9, 9, 8, 8, 8, 7, 7, 6, 6, 6, 5, 5, 4, 3, 3, 2, 2, 2, 2, // X: -13 from planet center. 2, 2, 2, 2, 2, 3, 3, 3, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 10, 10, 10, 10, 10, 9, 9, 8, 8, 7, 7, 6, 6, 5, 3, 3, 3, 2, 2, 2, 2, // X: -12 from planet center. 2, 2, 2, 2, 3, 3, 3, 4, 4, 6, 7, 8, 8, 9, 10, 10, 11, 11, 12, 12, 12, 12, 12, 11, 11, 10, 10, 9, 8, 8, 7, 6, 4, 4, 3, 3, 3, 2, 2, 2, // X: -11 from planet center. 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 8, 8, 9, 10, 11, 12, 13, 13, 14, 14, 14, 14, 14, 13, 13, 12, 11, 10, 9, 8, 8, 5, 4, 4, 4, 3, 3, 3, 2, 2, // X: -10 from planet center. 1, 2, 3, 3, 3, 3, 4, 4, 5, 5, 6, 9, 10, 12, 13, 14, 15, 16, 17, 17, 18, 17, 17, 16, 15, 14, 13, 12, 10, 9, 6, 5, 5, 4, 4, 3, 3, 3, 3, 2, // X: -9 from planet center. 1, 1, 1, 3, 3, 4, 4, 5, 5, 6, 7, 7, 12, 13, 15, 16, 18, 20, 21, 21, 22, 21, 21, 20, 18, 16, 15, 13, 12, 7, 7, 6, 5, 5, 4, 4, 3, 3, 1, 1, // X: -8 from planet center. 1, 1, 2, 2, 2, 4, 4, 5, 6, 6, 7, 8, 9, 15, 18, 20, 22, 24, 26, 27, 28, 27, 26, 24, 22, 20, 18, 15, 9, 8, 7, 6, 6, 5, 4, 4, 2, 2, 2, 1, // X: -7 from planet center. 1, 1, 2, 2, 2, 2, 3, 5, 6, 7, 8, 9, 11, 12, 21, 24, 27, 31, 33, 36, 36, 36, 33, 31, 27, 24, 21, 12, 11, 9, 8, 7, 6, 5, 3, 2, 2, 2, 2, 1, // X: -6 from planet center. 1, 1, 1, 2, 2, 3, 3, 3, 4, 8, 9, 10, 12, 14, 17, 29, 34, 40, 45, 48, 50, 48, 45, 40, 34, 29, 17, 14, 12, 10, 9, 8, 4, 3, 3, 3, 2, 2, 1, 1, // X: -5 from planet center. 1, 1, 1, 1, 2, 2, 3, 4, 4, 5, 6, 12, 14, 17, 20, 25, 43, 52, 62, 69, 72, 69, 62, 52, 43, 25, 20, 17, 14, 12, 6, 5, 4, 4, 3, 2, 2, 1, 1, 1, // X: -4 from planet center. 0, 1, 1, 1, 1, 2, 2, 3, 3, 5, 6, 8, 10, 19, 24, 31, 39, 72, 90, 105, 112, 105, 90, 72, 39, 31, 24, 19, 10, 8, 6, 5, 3, 3, 2, 2, 1, 1, 1, 1, // X: -3 from planet center. 0, 0, 0, 1, 1, 1, 2, 2, 2, 4, 5, 6, 11, 13, 17, 37, 50, 70, -118, -76, -56, -76, -118, 70, 50, 37, 17, 13, 11, 6, 5, 4, 2, 2, 2, 1, 1, 1, 0, 0, // X: -2 from planet center. 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 3, 5, 6, 10, 14, 27, 40, 97, -97, 104, -62, 104, -97, 97, 40, 27, 14, 10, 6, 5, 3, 2, 1, 1, 1, 1, 0, 0, 0, 0, // X: -1 from planet center. 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 2, 3, 5, 7, 13, 25, 56, -96, 124, 8, 124, -96, 56, 25, 13, 7, 5, 3, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, // X: 0 from planet center. 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // X: 1 from planet center. 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, -1, -2, -3, -5, -7, -13, -25, -56, 96, -124, -8, -124, 96, -56, -25, -13, -7, -5, -3, -2, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, // X: 2 from planet center. 0, 0, 0, 0, 0, -1, -1, -1, -1, -2, -3, -5, -6, -10, -14, -27, -40, -97, 97, -104, 62, -104, 97, -97, -40, -27, -14, -10, -6, -5, -3, -2, -1, -1, -1, -1, 0, 0, 0, 0, // X: 3 from planet center. 0, 0, 0, -1, -1, -1, -2, -2, -2, -4, -5, -6, -11, -13, -17, -37, -50, -70, 118, 76, 56, 76, 118, -70, -50, -37, -17, -13, -11, -6, -5, -4, -2, -2, -2, -1, -1, -1, 0, 0, // X: 4 from planet center. 0, -1, -1, -1, -1, -2, -2, -3, -3, -5, -6, -8, -10, -19, -24, -31, -39, -72, -90, -105, -112, -105, -90, -72, -39, -31, -24, -19, -10, -8, -6, -5, -3, -3, -2, -2, -1, -1, -1, -1, // X: 5 from planet center. -1, -1, -1, -1, -2, -2, -3, -4, -4, -5, -6, -12, -14, -17, -20, -25, -43, -52, -62, -69, -72, -69, -62, -52, -43, -25, -20, -17, -14, -12, -6, -5, -4, -4, -3, -2, -2, -1, -1, -1, // X: 6 from planet center. -1, -1, -1, -2, -2, -3, -3, -3, -4, -8, -9, -10, -12, -14, -17, -29, -34, -40, -45, -48, -50, -48, -45, -40, -34, -29, -17, -14, -12, -10, -9, -8, -4, -3, -3, -3, -2, -2, -1, -1, // X: 7 from planet center. -1, -1, -2, -2, -2, -2, -3, -5, -6, -7, -8, -9, -11, -12, -21, -24, -27, -31, -33, -36, -36, -36, -33, -31, -27, -24, -21, -12, -11, -9, -8, -7, -6, -5, -3, -2, -2, -2, -2, -1, // X: 8 from planet center. -1, -1, -2, -2, -2, -4, -4, -5, -6, -6, -7, -8, -9, -15, -18, -20, -22, -24, -26, -27, -28, -27, -26, -24, -22, -20, -18, -15, -9, -8, -7, -6, -6, -5, -4, -4, -2, -2, -2, -1, // X: 9 from planet center. -1, -1, -1, -3, -3, -4, -4, -5, -5, -6, -7, -7, -12, -13, -15, -16, -18, -20, -21, -21, -22, -21, -21, -20, -18, -16, -15, -13, -12, -7, -7, -6, -5, -5, -4, -4, -3, -3, -1, -1, // X: 10 from planet center. -1, -2, -3, -3, -3, -3, -4, -4, -5, -5, -6, -9, -10, -12, -13, -14, -15, -16, -17, -17, -18, -17, -17, -16, -15, -14, -13, -12, -10, -9, -6, -5, -5, -4, -4, -3, -3, -3, -3, -2, // X: 11 from planet center. -2, -2, -2, -3, -3, -3, -4, -4, -4, -5, -8, -8, -9, -10, -11, -12, -13, -13, -14, -14, -14, -14, -14, -13, -13, -12, -11, -10, -9, -8, -8, -5, -4, -4, -4, -3, -3, -3, -2, -2, // X: 12 from planet center. -2, -2, -2, -2, -3, -3, -3, -4, -4, -6, -7, -8, -8, -9, -10, -10, -11, -11, -12, -12, -12, -12, -12, -11, -11, -10, -10, -9, -8, -8, -7, -6, -4, -4, -3, -3, -3, -2, -2, -2, // X: 13 from planet center. -2, -2, -2, -2, -2, -3, -3, -3, -5, -6, -6, -7, -7, -8, -8, -9, -9, -10, -10, -10, -10, -10, -10, -10, -9, -9, -8, -8, -7, -7, -6, -6, -5, -3, -3, -3, -2, -2, -2, -2, // X: 14 from planet center. -2, -2, -2, -2, -2, -3, -3, -4, -5, -5, -6, -6, -6, -7, -7, -8, -8, -8, -9, -9, -9, -9, -9, -8, -8, -8, -7, -7, -6, -6, -6, -5, -5, -4, -3, -3, -2, -2, -2, -2, // X: 15 from planet center. -2, -2, -2, -2, -2, -2, -4, -4, -4, -5, -5, -5, -6, -6, -6, -7, -7, -7, -7, -7, -8, -7, -7, -7, -7, -7, -6, -6, -6, -5, -5, -5, -4, -4, -4, -2, -2, -2, -2, -2, // X: 16 from planet center. -1, -2, -2, -2, -2, -3, -3, -4, -4, -4, -5, -5, -5, -5, -6, -6, -6, -6, -6, -7, -7, -7, -6, -6, -6, -6, -6, -5, -5, -5, -5, -4, -4, -4, -3, -3, -2, -2, -2, -2, // X: 17 from planet center. -1, -1, -2, -2, -3, -3, -3, -3, -4, -4, -4, -4, -5, -5, -5, -5, -5, -6, -6, -6, -6, -6, -6, -6, -5, -5, -5, -5, -5, -4, -4, -4, -4, -3, -3, -3, -3, -2, -2, -1, // X: 18 from planet center. -1, -1, -1, -2, -3, -3, -3, -3, -3, -4, -4, -4, -4, -4, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -5, -4, -4, -4, -4, -4, -3, -3, -3, -3, -3, -2, -1, -1, // X: 19 from planet center. -1, -1, -2, -2, -2, -3, -3, -3, -3, -3, -3, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -4, -3, -3, -3, -3, -3, -3, -2, -2, -2, -1 }; flash signed char YGrav[2*PLANETX][2*PLANETY] = { // X: -20 from planet center. 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // X: -19 from planet center. 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, -1, // X: -18 from planet center. 1, 1, 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, 0, 0, 0, 0, 0, 0, -1, -1, // X: -17 from planet center. 1, 1, 2, 2, 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, 0, 0, 0, 0, -2, -2, -1, // X: -16 from planet center. 1, 2, 2, 2, 2, 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, 0, 0, -2, -2, -2, -2, // X: -15 from planet center. 2, 2, 2, 2, 2, 2, 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, -2, -2, -2, -2, -2, // X: -14 from planet center. 2, 2, 2, 2, 2, 3, 3, 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, -3, -3, -2, -2, -2, -2, // X: -13 from planet center. 2, 2, 2, 2, 2, 3, 3, 3, 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, -3, -3, -3, -2, -2, -2, -2, // X: -12 from planet center. 2, 2, 2, 2, 3, 3, 3, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -4, -4, -3, -3, -3, -2, -2, -2, // X: -11 from planet center. 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5, -4, -4, -4, -3, -3, -3, -2, -2, // X: -10 from planet center. 3, 2, 3, 3, 3, 3, 4, 4, 5, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -6, -5, -5, -4, -4, -3, -3, -3, -3, -2, // X: -9 from planet center. 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -7, -7, -6, -5, -5, -4, -4, -3, -3, -3, -3, // X: -8 from planet center. 3, 3, 4, 4, 5, 4, 4, 5, 6, 6, 7, 8, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -9, -8, -7, -6, -6, -5, -4, -4, -5, -4, -4, -3, // X: -7 from planet center. 3, 3, 4, 4, 5, 5, 6, 5, 6, 7, 8, 9, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -12, -11, -9, -8, -7, -6, -5, -6, -5, -5, -4, -4, -3, // X: -6 from planet center. 3, 4, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 12, 14, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -17, -14, -12, -10, -9, -8, -8, -7, -6, -6, -5, -4, -4, -4, // X: -5 from planet center. 4, 4, 4, 5, 6, 6, 7, 8, 9, 11, 12, 12, 14, 17, 20, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, -25, -20, -17, -14, -12, -12, -11, -9, -8, -7, -6, -6, -5, -4, -4, // X: -4 from planet center. 4, 4, 5, 5, 6, 7, 8, 9, 10, 11, 13, 16, 20, 19, 24, 31, 39, 0, 0, 0, 0, 0, 0, 0, -39, -31, -24, -19, -20, -16, -13, -11, -10, -9, -8, -7, -6, -5, -5, -4, // X: -3 from planet center. 4, 4, 5, 5, 6, 7, 8, 9, 11, 13, 15, 18, 22, 27, 35, 37, 50, 70, 0, 0, 0, 0, 0, -70, -50, -37, -35, -27, -22, -18, -15, -13, -11, -9, -8, -7, -6, -5, -5, -4, // X: -2 from planet center. 4, 4, 5, 6, 6, 7, 8, 10, 11, 14, 16, 20, 25, 32, 42, 55, 80, 97, -97, 0, 0, 0, 97, -97, -80, -55, -42, -32, -25, -20, -16, -14, -11, -10, -8, -7, -6, -6, -5, -4, // X: -1 from planet center. 4, 4, 5, 6, 6, 7, 9, 10, 12, 14, 17, 21, 27, 35, 47, 67, 102, -86, 65, 124, 0, -124, -65, 86, -102, -67, -47, -35, -27, -21, -17, -14, -12, -10, -9, -7, -6, -6, -5, -4, // X: 0 from planet center. 4, 4, 5, 6, 7, 8, 9, 10, 12, 14, 18, 22, 28, 36, 50, 72, 112, -56, -62, 8, 0, -8, 62, 56, -112, -72, -50, -36, -28, -22, -18, -14, -12, -10, -9, -8, -7, -6, -5, -4, // X: 1 from planet center. 4, 4, 5, 6, 6, 7, 9, 10, 12, 14, 17, 21, 27, 35, 47, 67, 102, -86, 65, 124, 0, -124, -65, 86, -102, -67, -47, -35, -27, -21, -17, -14, -12, -10, -9, -7, -6, -6, -5, -4, // X: 2 from planet center. 4, 4, 5, 6, 6, 7, 8, 10, 11, 14, 16, 20, 25, 32, 42, 55, 80, 97, -97, 0, 0, 0, 97, -97, -80, -55, -42, -32, -25, -20, -16, -14, -11, -10, -8, -7, -6, -6, -5, -4, // X: 3 from planet center. 4, 4, 5, 5, 6, 7, 8, 9, 11, 13, 15, 18, 22, 27, 35, 37, 50, 70, 0, 0, 0, 0, 0, -70, -50, -37, -35, -27, -22, -18, -15, -13, -11, -9, -8, -7, -6, -5, -5, -4, // X: 4 from planet center. 4, 4, 5, 5, 6, 7, 8, 9, 10, 11, 13, 16, 20, 19, 24, 31, 39, 0, 0, 0, 0, 0, 0, 0, -39, -31, -24, -19, -20, -16, -13, -11, -10, -9, -8, -7, -6, -5, -5, -4, // X: 5 from planet center. 4, 4, 4, 5, 6, 6, 7, 8, 9, 11, 12, 12, 14, 17, 20, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, -25, -20, -17, -14, -12, -12, -11, -9, -8, -7, -6, -6, -5, -4, -4, // X: 6 from planet center. 3, 4, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 12, 14, 17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -17, -14, -12, -10, -9, -8, -8, -7, -6, -6, -5, -4, -4, -4, // X: 7 from planet center. 3, 3, 4, 4, 5, 5, 6, 5, 6, 7, 8, 9, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -12, -11, -9, -8, -7, -6, -5, -6, -5, -5, -4, -4, -3, // X: 8 from planet center. 3, 3, 4, 4, 5, 4, 4, 5, 6, 6, 7, 8, 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -9, -8, -7, -6, -6, -5, -4, -4, -5, -4, -4, -3, // X: 9 from planet center. 3, 3, 3, 3, 3, 4, 4, 5, 5, 6, 7, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -7, -7, -6, -5, -5, -4, -4, -3, -3, -3, -3, // X: 10 from planet center. 3, 2, 3, 3, 3, 3, 4, 4, 5, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -6, -5, -5, -4, -4, -3, -3, -3, -3, -2, // X: 11 from planet center. 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -5, -4, -4, -4, -3, -3, -3, -2, -2, // X: 12 from planet center. 2, 2, 2, 2, 3, 3, 3, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -4, -4, -3, -3, -3, -2, -2, -2, // X: 13 from planet center. 2, 2, 2, 2, 2, 3, 3, 3, 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, -3, -3, -3, -2, -2, -2, -2, // X: 14 from planet center. 2, 2, 2, 2, 2, 3, 3, 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, -3, -3, -2, -2, -2, -2, // X: 15 from planet center. 2, 2, 2, 2, 2, 2, 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, -2, -2, -2, -2, -2, // X: 16 from planet center. 1, 2, 2, 2, 2, 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, 0, 0, -2, -2, -2, -2, // X: 17 from planet center. 1, 1, 2, 2, 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, 0, 0, 0, 0, -2, -2, -1, // X: 18 from planet center. 1, 1, 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, 0, 0, 0, 0, 0, 0, -1, -1, // X: 19 from planet center. 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, -1 }; #endif