sm64/shape/enemy2_e/goal_flag/animed_patapata.anm
2022-12-04 22:27:02 -05:00

253 lines
7.8 KiB
Plaintext

/**************************************************************/
/* shape data animed_patapata (skeleton & animation) */
/**************************************************************/
#define ShapeColor_animed_patapata(r,g,b) ShapeColor(r,g,b)
/*-------------------------------------------------------------*/
/* light data */
/*-------------------------------------------------------------*/
static Lights1 light_animed_patapata[]={
ShapeColor_animed_patapata(0,110,0),
ShapeColor_animed_patapata(255,230,87),
ShapeColor_animed_patapata(172,84,5),
};
/*-------------------------------------------------------------*/
/* vertex & polygon data */
/*-------------------------------------------------------------*/
static Vtx vtx_animed_patapata0[]={
{0,0,112,0,0,0,0,127,0,0},
{288,0,0,0,0,0,0,127,0,0},
{0,0,-112,0,0,0,0,127,0,0},
};
static Vtx vtx_animed_patapata1[]={
{0,0,224,0,0,0,0,127,0,0},
{288,0,112,0,0,0,0,127,0,0},
{288,0,-112,0,0,0,0,127,0,0},
{0,0,-224,0,0,0,0,127,0,255},
};
static Vtx vtx_animed_patapata2[]={
{0,0,360,0,0,0,0,127,0,0},
{344,0,224,0,0,0,0,127,0,0},
{344,0,-224,0,0,0,0,127,0,0},
{0,0,-360,0,0,0,0,127,0,255},
};
static Vtx vtx_animed_patapata3[]={
{0,0,540,0,0,0,0,127,0,0},
{460,0,360,0,0,0,0,127,0,0},
{460,0,-360,0,0,0,0,127,0,0},
{0,0,-540,0,0,0,0,127,0,255},
};
static Vtx vtx_animed_patapata4[]={
{460,0,-540,0,0,0,0,127,0,0},
{0,0,-719,0,0,0,0,127,0,0},
{0,0,0,0,0,0,0,127,0,0},
{0,0,720,0,0,0,0,127,0,255},
{460,0,540,0,0,0,0,127,0,255},
{460,0,540,0,0,0,0,127,0,0},
{460,0,-540,0,0,0,0,127,0,0},
{0,0,0,0,0,0,0,127,0,0},
};
static Vtx vtx_animed_patapata5[]={
{0,18,57,0,0,0,0,39,120,0},
{0,-48,35,0,0,0,0,-102,74,0},
{2800,-18,57,0,0,0,95,-25,79,0},
{0,-48,-35,0,0,0,0,-102,-74,255},
{0,18,-57,0,0,0,0,39,-120,255},
{2800,-18,-57,0,0,0,77,-31,-95,255},
{0,60,0,0,0,0,0,127,0,255},
{2800,48,35,0,0,0,45,95,69,255},
{2800,-60,0,0,0,0,45,-118,0,255},
{2800,48,-35,0,0,0,77,81,-59,255},
};
Gfx RCP_animed_patapata0[]={
gsSPLight((&light_animed_patapata[0].l[0]),1),
gsSPLight((&light_animed_patapata[0].a),2),
gsSPVertex(&vtx_animed_patapata0[0],3,0),
gsSP1Triangle(0,1,2,0),
gsSPEndDisplayList()
};
Gfx RCP_animed_patapata1[]={
gsSPLight((&light_animed_patapata[0].l[0]),1),
gsSPLight((&light_animed_patapata[0].a),2),
gsSPVertex(&vtx_animed_patapata1[0],4,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSPEndDisplayList()
};
Gfx RCP_animed_patapata2[]={
gsSPLight((&light_animed_patapata[0].l[0]),1),
gsSPLight((&light_animed_patapata[0].a),2),
gsSPVertex(&vtx_animed_patapata2[0],4,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSPEndDisplayList()
};
Gfx RCP_animed_patapata3[]={
gsSPLight((&light_animed_patapata[0].l[0]),1),
gsSPLight((&light_animed_patapata[0].a),2),
gsSPVertex(&vtx_animed_patapata3[0],4,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(0,2,3,0),
gsSPEndDisplayList()
};
Gfx RCP_animed_patapata4[]={
gsSPLight((&light_animed_patapata[1].l[0]),1),
gsSPLight((&light_animed_patapata[1].a),2),
gsSPVertex(&vtx_animed_patapata4[0],5,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(2,3,4,0),
gsSPLight((&light_animed_patapata[0].l[0]),1),
gsSPLight((&light_animed_patapata[0].a),2),
gsSPVertex(&vtx_animed_patapata4[5],3,0),
gsSP1Triangle(0,1,2,0),
gsSPEndDisplayList()
};
Gfx RCP_animed_patapata5[]={
gsSPLight((&light_animed_patapata[2].l[0]),1),
gsSPLight((&light_animed_patapata[2].a),2),
gsSPVertex(&vtx_animed_patapata5[0],10,0),
gsSP1Triangle(0,1,2,0),
gsSP1Triangle(3,4,5,0),
gsSP1Triangle(6,0,7,0),
gsSP1Triangle(1,3,8,0),
gsSP1Triangle(4,6,9,0),
gsSP1Triangle(9,7,2,0),
gsSP1Triangle(9,2,5,0),
gsSP1Triangle(2,8,5,0),
gsSP1Triangle(5,8,3,0),
gsSP1Triangle(9,5,4,0),
gsSP1Triangle(7,9,6,0),
gsSP1Triangle(2,7,0,0),
gsSP1Triangle(8,2,1,0),
gsSPEndDisplayList()
};
Gfx light_sourcex[]={
gsSPNumLights(NUMLIGHTS_1),
gsSPEndDisplayList()
};
/****************
(0),face11,RCP_animed_patapata0,NULL,(-1),NULL,(-1),288,0,0
(1),face10,RCP_animed_patapata1,NULL,(-1),face11,(0),344,0,0
(2),face9,RCP_animed_patapata2,NULL,(-1),face10,(1),460,0,0
(3),face8,RCP_animed_patapata3,NULL,(-1),face9,(2),460,0,0
(4),face7,RCP_animed_patapata4,NULL,(-1),face8,(3),0,0,0
(5),chn7,NULL,NULL,(-1),face7,(4),2040,0,0
(6),cyl9,RCP_animed_patapata5,NULL,(-1),chn7,(5),0,0,0
(7),chn8,light_sourcex,NULL,(-1),cyl9,(6),0,0,0
****************/
/*-------------------------------------------------------------*/
/* animation data */
/*-------------------------------------------------------------*/
static short animed_patapata_prm[]={
0, 4835, 3907, 2463, 721,-1101,-2789,-4125,
-4928,-5481,-5883,-6121,-6182,-6054,-5723,-5177,
-4309,-2785, -812, 1339, 3401, 5102, 6174, 6692,
6939, 6952, 6769, 6428, 5967, 5423, 3581, 2871,
1610, 109,-1318,-2361,-2855,-3215,-3491,-3677,
-3768,-3758,-3642,-3414,-3068,-2526,-1519, -188,
1277, 2685, 3848, 4573, 4906, 5041, 5011, 4851,
4594, 4274, 3925,-3009,-3210,-3342,-3401,-3389,
-3303,-3143,-2907,-2485,-1816, -982, -59, 871,
1731, 2443, 2931, 3205, 3300, 3237, 3037, 2722,
2296, 1701, 979, 182, -633,-1414,-2107,-2657,
-2628,-2534,-2270,-1862,-1337, -720, -40, 678,
1408, 2089, 2618, 3004, 3257, 3391, 3404, 3140,
2619, 1925, 1144, 361, -339, -873,-1218,-1535,
-1829,-2091,-2312,-2481,-2590, 1258, 1203, 1057,
844, 592, 327, 75, -137, -342, -573, -807,
-1022,-1195,-1305,-1328,-1243,-1060, -810, -524,
-233, 32, 242, 418, 595, 766, 922, 1058,
1164, 1233,16383,-16383,16383,};
static unsigned short animed_patapata_tbl[]= {
1, 0, /* chn8(7) */
1, 0,
1, 0,
1, 0, /* chn8(7) */
1, 0,
1, 0,
1, 0, /* cyl9(6) */
1, 0,
1, 148,
1, 146, /* chn7(5) */
1, 0,
1, 147,
1, 0, /* face7(4) */
1, 0,
29, 117,
1, 0, /* face8(3) */
1, 0,
29, 88,
1, 0, /* face9(2) */
1, 0,
29, 59,
1, 0, /* face10(1) */
1, 0,
29, 30,
1, 0, /* face11(0) */
1, 0,
29, 1,
};
AnimeRecord animed_patapata_anm={
MAP_ANIM_NORMAL, /* attr */
0, /* code */
0, /* start */
0, /* loop */
29,
8,
animed_patapata_prm,
animed_patapata_tbl
};
/*-------------------------------------------------------------*/
/* Hms data */
/*-------------------------------------------------------------*/
Hierarchy RCP_HmsEnemyanimed_patapata[] = {
hmsShadow(100,150,1)
hmsBegin()
hmsScale(0.25f)
hmsBegin()
hmsJoint(RM_SURF,light_sourcex,0,0,0) /* ,chn8,(7) */
hmsBegin()
hmsJoint(RM_SURF,RCP_animed_patapata5,0,0,0) /* ,cyl9,(6) */
hmsBegin()
hmsJoint(RM_SURF,NULL,2040,0,0) /* ,chn7,(5) */
hmsBegin()
hmsJoint(RM_SURF,RCP_animed_patapata4,0,0,0) /* ,face7,(4) */
hmsBegin()
hmsJoint(RM_SURF,RCP_animed_patapata3,460,0,0) /* ,face8,(3) */
hmsBegin()
hmsJoint(RM_SURF,RCP_animed_patapata2,460,0,0) /* ,face9,(2) */
hmsBegin()
hmsJoint(RM_SURF,RCP_animed_patapata1,344,0,0) /* ,face10,(1) */
hmsBegin()
hmsJoint(RM_SURF,RCP_animed_patapata0,288,0,0) /* ,face11,(0) */
hmsEnd()
hmsEnd()
hmsEnd()
hmsEnd()
hmsEnd()
hmsEnd()
hmsEnd()
hmsEnd()
hmsEnd()
hmsExit()
};
// extern AnimeRecord animed_patapata_anm[];
// extern Hierarchy RCP_HmsEnemyanimed_patapata[];
/*=============================================================*/
/* END END */
/*=============================================================*/