BeanCountersClassic/src/coords.c

375 lines
5.6 KiB
C

/*
* coords.c
* This file is part of Bean Counters Classic
*
* Copyright (C) 2022 - Félix Arreola Rodríguez
*
* Bean Counters Classic is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Bean Counters Classic is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Bean Counters Classic; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
#include "coords.h"
const int bag_0_points[31][3] = {
{0, 638, 108},
{0, 613, 98},
{0, 588, 87},
{0, 565, 80},
{0, 543, 72},
{0, 523, 68},
{0, 504, 65},
{0, 485, 61},
{1, 493, 28},
{1, 479, 27},
{1, 465, 27},
{1, 456, 28},
{2, 427, 86},
{2, 413, 89},
{2, 401, 93},
{2, 388, 97},
{2, 371, 103},
{2, 355, 110},
{2, 340, 119},
{2, 322, 131},
{2, 305, 146},
{2, 290, 161},
{2, 273, 181},
{2, 259, 203},
{2, 246, 226},
{2, 233, 254},
{2, 223, 282},
{2, 214, 311},
{2, 205, 343},
{2, 196, 375},
{3, 165, 408}
};
const int bag_1_points[22][3] = {
{0, 633, 209},
{0, 622, 168},
{0, 610, 134},
{0, 598, 107},
{0, 586, 87},
{0, 574, 74},
{0, 563, 69},
{0, 558, 68},
{1, 579, 38},
{1, 571, 42},
{1, 563, 51},
{1, 554, 65},
{2, 527, 141},
{2, 520, 164},
{2, 512, 187},
{2, 505, 215},
{2, 498, 246},
{2, 491, 280},
{2, 484, 317},
{2, 478, 358},
{2, 472, 402},
{3, 441, 420}
};
const int bag_2_points[28][3] = {
{0, 633, 229},
{0, 620, 202},
{0, 606, 175},
{0, 593, 154},
{0, 579, 132},
{0, 565, 116},
{0, 550, 100},
{0, 536, 89},
{1, 548, 49},
{1, 535, 46},
{1, 523, 43},
{1, 510, 39},
{2, 477, 99},
{2, 461, 104},
{2, 444, 114},
{2, 427, 126},
{2, 413, 140},
{2, 399, 160},
{2, 385, 179},
{2, 370, 199},
{2, 357, 224},
{2, 344, 249},
{2, 331, 273},
{2, 319, 304},
{2, 307, 335},
{2, 294, 365},
{2, 282, 396},
{3, 251, 405}
};
const int bag_3_points[33][3] = {
{0, 647, 305},
{0, 620, 267},
{0, 595, 236},
{0, 570, 204},
{0, 546, 179},
{0, 522, 153},
{0, 499, 135},
{0, 477, 116},
{1, 481, 71},
{1, 463, 63},
{1, 444, 54},
{1, 429, 50},
{2, 397, 106},
{2, 389, 107},
{2, 381, 108},
{2, 373, 109},
{2, 365, 110},
{2, 354, 114},
{2, 343, 117},
{2, 330, 125},
{2, 316, 132},
{2, 302, 145},
{2, 288, 158},
{2, 275, 176},
{2, 261, 194},
{2, 249, 217},
{2, 237, 240},
{2, 227, 267},
{2, 217, 294},
{2, 208, 326},
{2, 198, 358},
{2, 189, 389},
{3, 141, 422}
};
const int bag_stack_offsets[30][2] = {
{15, 251},
{14, 236},
{13, 227},
{13, 220},
{13, 211},
{13, 203},
{12, 192},
{12, 182},
{13, 173},
{9, 165}, // 10
{10, 158},
{10, 149},
{10, 141},
{8, 136},
{8, 125},
{8, 120},
{0, 114},
{2, 106},
{2, 94},
{2, 85}, // 20
{2, 79},
{2, 70},
{2, 69},
{2, 60},
{2, 52},
{2, 42},
{2, 35},
{2, 25},
{2, 20}
// {2, 11} del 30 al 60
};
const int anvil_offsets[24][2] = {
{631, 276},
{609, 226},
{589, 185},
{570, 151},
{551, 126},
{534, 109},
{519, 101},
{509, 100},
{503, 100},
{495, 103},
{486, 111},
{478, 124},
{470, 137},
{464, 154},
{458, 171},
{454, 192},
{450, 214},
{446, 238},
{443, 263},
{441, 291},
{437, 320},
{435, 352},
{432, 384},
{422, 406}
};
const int anvil_collider_offsets[23][2] = {
{692, 298},
{669, 245},
{647, 201},
{627, 165},
{608, 138},
{590, 120},
{574, 111},
{564, 109},
{559, 109},
{550, 112},
{541, 119},
{533, 132},
{525, 145},
{519, 162},
{512, 180},
{508, 202},
{503, 223},
{499, 249},
{496, 275},
{492, 304},
{488, 333},
{485, 366},
{482, 399}
};
const int fish_collider_offsets[10][2] = {
{337, 157},
{326, 173},
{315, 191},
{303, 207},
{292, 229},
{282, 251},
{271, 272},
{260, 299},
{250, 325},
{240, 351},
};
const int flower_collider_offsets[11][2] = {
{465, 163},
{455, 174},
{446, 184},
{436, 194},
{427, 210},
{419, 226},
{410, 242},
{403, 264},
{396, 286},
{388, 308},
{381, 330}
};
const int oneup_offsets[35][2] = {
{636, 142},
{624, 130},
{611, 119},
{598, 107},
{586, 96},
{573, 84},
{560, 72},
{547, 70},
{534, 68},
{521, 66},
{507, 64},
{494, 62},
{481, 60},
{468, 58},
{454, 56},
{442, 67},
{431, 80},
{420, 93},
{409, 105},
{398, 118},
{392, 139},
{386, 159},
{380, 180},
{373, 201},
{367, 221},
{361, 242},
{355, 263},
{349, 284},
{343, 304},
{337, 325},
{334, 351},
{330, 378},
{327, 404},
{324, 431},
{321, 458}
};
const int fish_offsets[35][2] = {
{634, 247},
{603, 213},
{574, 184},
{546, 158},
{518, 136},
{492, 119},
{468, 105},
{445, 96},
{425, 90},
{407, 87},
{393, 86},
{383, 86},
{375, 87},
{368, 88},
{361, 90},
{354, 91},
{347, 93},
{336, 98},
{325, 104},
{314, 110},
{302, 121},
{289, 132},
{277, 143},
{265, 160},
{254, 177},
{242, 194},
{231, 215},
{220, 237},
{210, 259},
{200, 285},
{189, 311},
{179, 337},
{170, 367},
{160, 397},
{122, 433}
};
const int flower_offsets[32][2] = {
{646, 217},
{626, 192},
{606, 167},
{587, 147},
{569, 128},
{551, 115},
{534, 101},
{519, 94},
{503, 87},
{492, 85},
{481, 82},
{475, 82},
{467, 82},
{463, 83},
{457, 85},
{452, 86},
{443, 91},
{435, 95},
{426, 100},
{417, 110},
{408, 120},
{399, 131},
{390, 146},
{382, 162},
{374, 178},
{366, 198},
{359, 218},
{352, 239},
{345, 264},
{339, 288},
{332, 313},
{334, 382}
};