sm64/data/Anime/opendoor2.c
2022-12-04 22:27:02 -05:00

347 lines
16 KiB
C

/********************************************************************************
Ultra 64 MARIO Brothers
mario door openning 2 animation data
Copyright 1996 Nintendo co., ltd. All rights reserved
April 17, 1996
********************************************************************************/
#include "../headers.h"
static short mario_door_open2_prm[]={
0, 0, -3, -8, -16, -16, 0, 22,
46, 67, 88, 106, 117, 109, 94, 93,
96, 97, 84, 79, 78, 77, 76, 75,
74, 73, 72, 70, 66, 60, 50, 41,
36, 35, 35, 36, 37, 39, 41, 43,
42, 42, 41, 39, 33, 26, 19, 12,
7, 3, 0, 170, 171, 173, 176, 179,
181, 183, 184, 187, 194, 201, 205, 196,
184, 184, 184, 173, 179, 194, 204, 192,
176, 174, 178, 189, 201, 209, 209, 200,
189, 182, 184, 190, 196, 201, 202, 191,
173, 162, 160, 162, 165, 169, 171, 172,
172, 172, 172, 172, 172, 360, 365, 370,
373, 360, 324, 280, 233, 187, 142, 95,
49, 4, -41, -86, -132, -179, -226, -273,
-320, -367, -415, -463, -510, -558, -605, -652,
-699, -745, -791, -836, -881, -926, -969,-1012,
-1054,-1095,-1135,-1174,-1201,-1209,-1207,-1201,
-1199,-1201,-1203,-1204,-1204,-1205,-1205,16383,
0, 236, 841, 1662, 2545, 3334, 3877, 4020,
2654, 224,-1094, 147, 2500, 3785, 3756, 3630,
3420, 3140, 2804, 2425, 2017, 1593, 1168, 754,
366, 17, -278, -508, -657, -748, -813, -853,
-871, -868, -849, -814, -766, -707, -640, -567,
-490, -412, -334, -259, -189, -127, -75, -34,
-9, 0,-1668,-1746,-1947,-2226,-2536,-2832,
-3067,-3195,-2943,-2445,-2260,-2822,-3697,-4145,
-4110,-4036,-3929,-3794,-3637,-3462,-3276,-3084,
-2890,-2701,-2522,-2357,-2214,-2096,-2010,-1945,
-1889,-1840,-1797,-1762,-1732,-1707,-1688,-1673,
-1663,-1655,-1651,-1650,-1650,-1652,-1655,-1658,
-1662,-1665,-1667,-1668,-4724,-4747,-4816,-4935,
-5106,-5332,-5616,-5960,-6681,-7712,-8476,-8810,
-8879,-8600,-8075,-7475,-6813,-6107,-5371,-4622,
-3874,-3143,-2445,-1795,-1209, -702, -290, 11,
187, 252, 238, 152, 2, -203, -457, -751,
-1078,-1429,-1798,-2175,-2554,-2926,-3283,-3619,
-3924,-4191,-4413,-4581,-4687,-4724,-13745,-13701,
-13569,-13346,-13026,-12609,-12090,-11466,-10232,-8451,
-6973,-6115,-5560,-5203,-4897,-4580,-4276,-4007,
-3797,-3668,-3644,-3748,-4059,-4590,-5264,-6002,
-6728,-7363,-7830,-8192,-8565,-8944,-9328,-9712,
-10095,-10474,-10845,-11207,-11556,-11889,-12204,-12497,
-12767,-13009,-13222,-13403,-13548,-13656,-13722,-13745,
-1251, -927, -153, 773, 1553, 1889, 1482, 36,
-5799,-15136,-21910,-23293,-22113,-20806,-20253,-19706,
-19151,-18572,-17957,-17290,-16557,-15744,-14206,-12268,
-11373,-12809,-15287,-16382,-15923,-15361,-14709,-13980,
-13184,-12335,-11444,-10523,-9585,-8641,-7703,-6784,
-5895,-5049,-4257,-3532,-2885,-2329,-1875,-1537,
-1324,-1251,-11556,-11317,-10743,-10043,-9429,-9111,
-9302,-10213,-14169,-20510,-24956,-25645,-24440,-22662,
-20861,-18781,-16543,-14263,-12060,-10054,-8361,-7100,
-7799,-10169,-11608,-10648,-8757,-7727,-7748,-7812,
-7916,-8055,-8224,-8419,-8636,-8871,-9118,-9375,
-9636,-9897,-10153,-10401,-10636,-10854,-11051,-11221,
-11361,-11466,-11533,-11556,-11084,-11433,-12293,-13388,
-14439,-15168,-15300,-14555,-10439,-3568, 1671, 3467,
3632, 3226, 2842, 2369, 1813, 1178, 469, -308,
-1151,-2054,-3733,-5893,-7017,-5894,-3734,-2653,
-2852,-3118,-3445,-3823,-4247,-4709,-5200,-5714,
-6243,-6779,-7316,-7845,-8360,-8852,-9314,-9739,
-10119,-10446,-10714,-10915,-11041,-11084, 0, 232,
828, 1641, 2520, 3315, 3879, 2786, 55,-2112,
170,-1189,-2940,-3000,-2470,-1748, -781, 335,
1269, 1688, 1731, 1756, 1766, 1761, 1742, 1710,
1667, 1613, 1550, 1479, 1401, 1316, 1227, 1133,
1037, 939, 840, 742, 646, 552, 461, 376,
297, 225, 160, 105, 61, 27, 7, 0,
0, 127, 486, 1039, 1749, 2578, 3491, 6590,
5764, 4496, 4945, 4370, 3976, 5508, 6742, 7091,
5787, 3847, 2038, 1125, 927, 748, 587, 444,
318, 207, 112, 31, -37, -92, -137, -171,
-195, -211, -219, -219, -214, -204, -189, -171,
-150, -128, -105, -83, -61, -41, -24, -11,
-3, 0,-2743,-2837,-3092,-3467,-3919,-4408,
-4892,-6014,-5923,-5738,-6294,-7287,-8521,-10530,
-11294,-11161,-9735,-7764,-5959,-5035,-4796,-4574,
-4369,-4179,-4005,-3846,-3700,-3568,-3448,-3340,
-3244,-3158,-3083,-3017,-2960,-2912,-2871,-2836,
-2809,-2787,-2770,-2757,-2749,-2743,-2741,-2740,
-2740,-2741,-2742,-2743,-14371,-14085,-13349,-12347,
-11262,-10276,-9573,-10864,-11315,-10428,-12002,-12165,
-11942,-11196,-6123,-2731,-3969,-6514,-9491,-12027,
-13246,-13035,-12060,-10614,-8988,-7475,-6369,-5961,
-6047,-6221,-6474,-6798,-7182,-7619,-8100,-8614,
-9154,-9709,-10272,-10834,-11384,-11915,-12417,-12881,
-13299,-13661,-13958,-14181,-14322,-14371, 1355, 2388,
5158, 9175,13948,18987,23801,27900,29977,-10105,
6943, -440, -586,-5649,-11869,-14928,-12668,-9285,
-5242,-1003, 2964, 6199, 8236, 8291, 6549, 4003,
1645, 469, 242, 69, -55, -135, -174, -177,
-147, -89, -7, 94, 211, 341, 477, 617,
756, 890, 1015, 1127, 1220, 1293, 1339, 1355,
11222,11072,10687,10163, 9597, 9085, 8724, 8610,
11560,14485,15447,13904,12650,15351,12804,10296,
9686, 9254, 8978, 8836, 8806, 8865, 8991, 9402,
10166,11038,11774,12129,12199,12244,12268,12271,
12256,12226,12181,12124,12057,11983,11903,11819,
11733,11648,11565,11486,11414,11350,11297,11257,
11231,11222,-13066,-12415,-10673,-8153,-5170,-2038,
926, 3412, 4057,30277,-18841,-26888,-27180,-29762,
32169,31011,-31408,-27265,-22570,-17798,-13428,-9934,
-7793,-8078,-10655,-14197,-17375,-18860,-19003,-19047,
-19003,-18878,-18681,-18422,-18109,-17751,-17358,-16938,
-16500,-16053,-15606,-15169,-14749,-14356,-13999,-13687,
-13429,-13233,-13109,-13066, 0, -16, -44, -49,
0, 152, 383, 621, 866, 265, 84, 0,
-119, -265, -358, -324, -144, 119, 428, 745,
1029, 1242, 831, 481, 114, -395, -431, -416,
-374, -328, -300, -294, -296, -299, -300, -281,
-250, -238, -278, -460, -713, -827, -507, -148,
-65, -17, 3, 7, 3, 0, -208, -209,
-210, -210, -208, -216, -220, -181, 86, 202,
68, -208, -751,-1380,-1897,-2106,-1998,-1729,
-1352, -920, -488, -109, 236, 202, 63, -209,
-253, -274, -280, -281, -285, -291, -292, -290,
-285, -275, -261, -247, -237, -235, -239, -241,
-236, -230, -226, -221, -216, -212, -209, -208,
-13864,-13878,-13901,-13906,-13864,-13470,-13010,-13343,
-17929,-17452,-15342,-13968,-15028,-16555,-17891,-18376,
-17874,-16849,-15545,-14202,-13064,-12373,-15673,-17398,
-17866,-13624,-13639,-14129,-14854,-15573,-16045,-16238,
-16290,-16219,-16045,-15678,-15140,-14615,-14289,-14357,
-14670,-14894,-14814,-14636,-14489,-14321,-14153,-14007,
-13903,-13864, 7754, 8762,10911,12890,13386, 8984,
3654, 5772, 6614, 4974, 4316, 6675, 9539,12499,
16045,18356,18031,16604,14754,11018, 1823, 5254,
5785, 5833, 5914, 6544, 8348,10821,12787,13233,
13144,13719,14524,14925,14291, 9554, 4974, 7221,
10100,10222,10182,10011, 9741, 9404, 9032, 8657,
8309, 8022, 7826, 7754, 6921, 6880, 6707, 6322,
5649, 3777, 1862, 2858, 1905, 740, 1342, 763,
1230, -899, -893, -580, -165, 145, 51, 46,
57, 57, -18, -138, -187, -53, 356, 958,
1605, 2149, 2446, 2322, 1877, 1369, 1057, 1247,
1686, 2109, 2547, 2982, 3468, 3985, 4514, 5036,
5531, 5979, 6362, 6659, 6852, 6921, 4420, 4529,
4738, 4870, 4747, 3697, 2565, 3331, 2426, 1191,
665, 447, 2242, 3520, 2862, 1917, 901, 29,
-122, 280, 769, 961, 662, 106, -436, -700,
-606, -321, 50, 405, 641, 693, 633, 560,
572, 800, 1169, 1636, 2044, 2306, 2586, 2875,
3163, 3443, 3704, 3938, 4135, 4288, 4386, 4420,
-21436,-21827,-22727,-23725,-24413,-24375,-23811,-22451,
-19388,-17307,-15581,-15078,-14075,-14090,-16642,-19625,
-22554,-24943,-23876,-23943,-24171,-23551,-21496,-18673,
-15958,-14229,-13530,-13298,-13498,-14095,-15053,-16834,
-19453,-22200,-24363,-24971,-24860,-25117,-25145,-24841,
-24469,-24050,-23604,-23151,-22712,-22307,-21956,-21681,
-21501,-21436, 0, 420, 841, 468, 0, -45,
12, -104, -634,-1338,-1773,-1402, -861, -784,
-825, -833, -622, -740, -574, -538, -527, -518,
-491, -455, -438, -466, -553, -680, -822, -951,
-1043,-1084,-1087,-1069,-1043,-1017, -981, -928,
-852, -742, -607, -464, -333, -234, -162, -104,
-58, -26, -6, 0, 0, 0, 0, 0,
0, 0, 0, 0, 10, 21, 0, -114,
-243, -285, -308, -381, -731, -629, -357, -315,
-316, -320, -313, -308, -303, -298, -292, -285,
-279, -273, -268, -268, -270, -271, -268, -261,
-250, -236, -219, -197, -171, -144, -118, -96,
-75, -53, -33, -16, -4, 0,-16576,-16594,
-16613,-16622,-16576,-16569,-16520,-16054,-14746,-13020,
-11778,-11837,-12551,-13002,-13552,-14828,-19942,-18621,
-15442,-15150,-15399,-15645,-15713,-15782,-15843,-15890,
-15921,-15941,-15955,-15965,-15973,-15976,-15971,-15967,
-15973,-15935,-15867,-15880,-16084,-16596,-17333,-18106,
-18726,-19005,-18856,-18415,-17824,-17225,-16762,-16576,
9527, 9343, 8990, 8641, 8171, 6932, 5617, 6085,
11911,18063,13976, 8044, 3650, 2986, 3848, 5332,
9625, 8023, 6988,12035,16375,16032,14722,12834,
10760, 8891, 6594, 4915, 4992, 5775, 6883, 8113,
9521,11122,12933,15785,18404,18975,18749,18674,
18460,17696,15246,12873,11916,11098,10434, 9940,
9633, 9527,-10678,-10975,-11195,-11053,-10053,-7451,
-4272,-1847, -762, -430, -425,-1015,-1924,-2626,
-3285,-3691,-2763,-3714,-3088, -988, 1339, 2913,
3435, 3444, 3204, 2980, 2808, 2569, 2294, 2014,
1760, 1513, 1260, 1043, 901, 1019, 1318, 1442,
1039, -42,-1550,-3239,-4860,-6165,-7239,-8282,
-9221,-9981,-10491,-10678,-5055,-5035,-4907,-4645,
-4200,-3482,-2664,-2014,-1668,-1489,-1342,-1173,
-1124,-1270,-1492,-1646,-1413,-1159, -775, -890,
-1084,-1026, -515, 236, 931, 1274, 1176, 830,
365, -90, -409, -530, -539, -529, -595, -760,
-975,-1221,-1479,-1740,-2010,-2293,-2591,-2906,
-3291,-3752,-4225,-4643,-4941,-5055,-19042,-19447,
-20033,-20554,-20493,-18841,-16730,-16023,-18133,-21647,
-24183,-23713,-22289,-21778,-21395,-20899,-19757,-16716,
-14847,-16156,-18055,-19866,-21605,-23443,-24935,-25637,
-25478,-24797,-23761,-22537,-21294,-19711,-17734,-15929,
-14861,-14806,-15421,-16341,-17200,-18043,-19042,-20022,
-20806,-21218,-21173,-20802,-20255,-19680,-19226,-19042,
-32767,-32767,16753,-16545,-32767,-32767,16753,-16545,
0,-1427,-4708,-8338,-10813,-11268,-10560,-9767,
-9235,-8618,-7955,-7095,-6400,-6206,-6206,-6251,
-6295,-6489,-7324,-7522,-4884,-2667,-2954,-3824,
-4951,-6009,-6674,-6621,-5802,-4497,-2865,-1064,
745, 2404, 3754, 4636, 4701, 3977, 2867, 1774,
1099, 800, 559, 372, 232, 131, 64, 24,
4, 0, 0, -236, -762,-1298,-1567,-1363,
-850, -298, 289, 916, 1309, 1089, 633, 338,
66, -110, -116, 100, 679, 1239, 1355, 1299,
1250, 1190, 1122, 1049, 971, 892, 810, 722,
632, 540, 448, 357, 269, 185, 100, 12,
-67, -127, -159, -164, -155, -135, -109, -79,
-50, -24, -6, 0, -926,-1297,-2105,-2892,
-3201,-2734,-1689, -353, 1466, 3578, 5111, 5214,
4423, 3291, 1944, 964, 1025, 1422, 1383, 1250,
1108, 950, 794, 630, 467, 310, 167, 44,
-60, -154, -239, -318, -391, -461, -530, -599,
-667, -731, -787, -832, -863, -884, -899, -910,
-918, -923, -925, -926, -926, -926, 0, 264,
907, 1697, 2408, 2933, 3407, 3970, 4758, 6267,
8096, 9033, 9014, 8798, 8409, 7874, 7217, 6464,
5640, 3983, 1756, 521, 584, 1084, 1833, 2639,
3314, 3666, 3473, 2751, 1674, 176,-1686,-3559,
-5085,-5910,-5786,-4951,-3774,-2627,-1881,-1483,
-1133, -830, -575, -367, -206, -91, -22, 0,
0, 137, 423, 665, 673, 209, -562,-1231,
-1388, -359, 1338, 2326, 2373, 2204, 1883, 1475,
1043, 653, 368, 236, 211, 219, 232, 263,
302, 339, 365, 368, 279, 143, 121, 274,
511, 768, 981, 1086, 1050, 913, 728, 548,
425, 349, 277, 211, 152, 100, 58, 26,
6, 0, 2180, 2007, 1566, 970, 336, -399,
-1267,-2104,-2747,-3084,-3172,-3106,-2960,-2759,
-2523,-2273,-2026,-1803,-1624,-1549,-1569,-1595,
-1624,-1686,-1750,-1783,-1752,-1624,-1186, -492,
91, 468, 795, 1087, 1360, 1629, 1921, 2225,
2502, 2712, 2817, 2826, 2784, 2704, 2600, 2484,
2371, 2274, 2205, 2180,-32767,-32482,-31862,-31255,
-31011,-31272,-31836,-32533,32339,31573,30672,29978,
29830,30179,30717,31391,32152,-32585,-31805,-31091,
-30496,-30070,-29863,-29801,-29773,-29775,-29805,-29862,
-29942,-30043,-30163,-30299,-30448,-30610,-30780,-30957,
-31138,-31321,-31503,-31682,-31855,-32021,-32176,-32318,
-32445,-32554,-32643,-32710,-32752,-32767, 0, 198,
616, 990, 1055, 609, -162, -944,-1417,-1452,
-1232, -914, -656, -466, -257, -37, 183, 398,
597, 771, 911, 1009, 1055, 1068, 1069, 1061,
1044, 1019, 987, 947, 903, 853, 798, 741,
681, 619, 556, 492, 430, 368, 309, 252,
199, 151, 108, 71, 41, 18, 4, 0,
16383,16164,15659,15098,14710,14566,14541,14569,
14585,14584,14596,14612,14626,14631,14631,14627,
14623,14620,14621,14628,14643,14670,14710,14761,
14818,14880,14947,15019,15094,15172,15252,15334,
15417,15500,15584,15666,15747,15826,15902,15975,
16044,16109,16168,16221,16268,16308,16340,16363,
16378,16383
};
static short mario_door_open2_tbl[]={
50, 1, /* chn14_3translate x */
50, 51, /* chn14_3 translate y */
50, 101, /* chn14_3 translate z */
1, 0, /* chn14_3 rotate x */
1, 151, /* chn14_3 rotate y */
1, 0, /* chn14_3 rotate z */
50, 1860, /* <m_waist>1_3 rotate x */
50, 1910, /* <m_waist>1_3 rotate y */
50, 1960, /* <m_waist>1_3 rotate z */
50, 1710, /* <m_body>1 rotate x */
50, 1760, /* <m_body>1 rotate y */
50, 1810, /* <m_body>1 rotate z */
50, 1560, /* <m_head>2 rotate x */
50, 1610, /* <m_head>2 rotate y */
50, 1660, /* <m_head>2 rotate z */
1, 1556, /* chn6 rotate x */
1, 1557, /* chn6 rotate y */
1, 1558, /* chn6 rotate z */
50, 352, /* <m_larmA>1_4 rotate x */
50, 402, /* <m_larmA>1_4 rotate y */
50, 452, /* <m_larmA>1_4 rotate z */
1, 0, /* <m_larmB>1 rotate x */
1, 0, /* <m_larmB>1 rotate y */
50, 302, /* <m_larmB>1 rotate z */
50, 152, /* <m_lhand>1 rotate x */
50, 202, /* <m_lhand>1 rotate y */
50, 252, /* <m_lhand>1 rotate z */
1, 1552, /* chn10 rotate x */
1, 1553, /* chn10 rotate y */
1, 1554, /* chn10 rotate z */
50, 702, /* <m_rarmA>1_4 rotate x */
50, 752, /* <m_rarmA>1_4 rotate y */
50, 802, /* <m_rarmA>1_4 rotate z */
1, 0, /* <m_rarmB>1 rotate x */
1, 0, /* <m_rarmB>1 rotate y */
50, 652, /* <m_rarmB>1 rotate z */
50, 502, /* <m_rhand>1 rotate x */
50, 552, /* <m_rhand>1 rotate y */
50, 602, /* <m_rhand>1 rotate z */
1, 0, /* chn15 rotate x */
1, 0, /* chn15 rotate y */
1, 1555, /* chn15 rotate z */
50, 1402, /* <m_llegA>1 rotate x */
50, 1452, /* <m_llegA>1 rotate y */
50, 1502, /* <m_llegA>1 rotate z */
1, 0, /* <m_llegB>1 rotate x */
1, 0, /* <m_llegB>1 rotate y */
50, 1352, /* <m_llegB>1 rotate z */
50, 1202, /* <m_ltoot>1 rotate x */
50, 1252, /* <m_ltoot>1 rotate y */
50, 1302, /* <m_ltoot>1 rotate z */
1, 0, /* chn17 rotate x */
1, 0, /* chn17 rotate y */
1, 1559, /* chn17 rotate z */
50, 1052, /* <m_rlegA>1 rotate x */
50, 1102, /* <m_rlegA>1 rotate y */
50, 1152, /* <m_rlegA>1 rotate z */
1, 0, /* <m_rlegB>1 rotate x */
1, 0, /* <m_rlegB>1 rotate y */
50, 1002, /* <m_rlegB>1 rotate z */
50, 852, /* <m_rfoot>1 rotate x */
50, 902, /* <m_rfoot>1 rotate y */
50, 952, /* <m_rfoot>1 rotate z */
};
AnimeRecord animMarioOpenDoor2 = {
MAP_ANIM_ONETIME+MAP_ANIM_TRVERTI, /* attribute */
0, /* syncro */
0, /* start frame */
0, /* loop frame */
50, /* number of frames */
20, /* number of joints */
mario_door_open2_prm,
mario_door_open2_tbl
};