mario_body.sou 15.9 KB
/************************************************************************************************/
/*		Near mario body shape data with texture. [ 118 polygons ]								*/
/************************************************************************************************/
static Vtx vtx_mario_body_near[] = {
	{      9,     89,     41,     0,   180,   962,    20,  120,   35,  255}, 
	{      3,     77,     62,     0,   682,   966,     4,  106,   68,  255}, 
	{     47,     75,     35,     0,    34,   106,    57,  106,   38,  255}, 
	{     28,     85,     30,     0,   -60,   572,    44,  118,    8,  255}, 
	{     17,     66,     76,     0,   966,   590,    25,   88,   87,  255}, 
	{     32,     62,     74,     0,   902,   252,    41,   83,   86,  255}, 
	{     48,     64,     59,     0,   548,     0,    77,   81,   58,  255}, 
	{      9,     89,    -40,     0,   776,   920,    16,  123,  231,  255}, 
	{     28,     85,    -29,     0,   990,   512,    45,  117,  242,  255}, 
	{     47,     75,    -34,     0,   850,    72,    62,  106,  226,  255}, 
	{      3,     77,    -61,     0,   264,   972,     3,  106,  187,  255}, 
	{     48,     64,    -58,     0,   312,     0,    77,   80,  197,  255}, 
	{     32,     62,    -73,     0,   -24,   310,    41,   82,  169,  255}, 
	{     17,     66,    -75,     0,   -58,   642,    23,   88,  168,  255}, 
	{     47,     75,    -34,     0,     0,     0,    62,  106,  226,  255}, 
	{     47,     75,     35,     0,     0,     0,    57,  106,   38,  255}, 
	{     82,     37,     27,     0,     0,     0,   102,   72,   20,  255}, 
	{     82,     37,    -26,     0,     0,     0,   105,   67,  236,  255}, 
	{    100,      1,     24,     0,     0,     0,   122,   23,   22,  255}, 
	{    100,      1,    -23,     0,     0,     0,   124,    9,  234,  255}, 
	{      6,    -10,    -92,     0,     0,     0,     0,  235,  131,  255}, 
	{     47,      3,    -88,     0,     0,     0,    48,    9,  139,  255}, 
	{     46,    -34,    -83,     0,     0,     0,    36,  200,  149,  255}, 
	{     12,     33,    -90,     0,     0,     0,    17,   32,  135,  255}, 
	{     20,    -61,    -67,     0,     0,     0,    10,  154,  183,  255}, 
	{     66,    -52,    -50,     0,     0,     0,    59,  154,  211,  255}, 
	{     84,    -29,    -62,     0,     0,     0,    95,  222,  180,  255}, 
	{     20,    -61,     68,     0,     0,     0,    10,  153,   73,  255}, 
	{     66,    -52,     51,     0,     0,     0,    59,  154,   45,  255}, 
	{     46,    -34,     84,     0,     0,     0,    36,  200,  107,  255}, 
	{     20,    -61,     68,     0,     0,     0,    10,  153,   73,  255}, 
	{     46,    -34,     84,     0,     0,     0,    36,  200,  107,  255}, 
	{      6,    -11,     93,     0,     0,     0,     0,  234,  124,  255}, 
	{     47,      3,     89,     0,     0,     0,    48,    8,  117,  255}, 
	{     84,    -29,     63,     0,     0,     0,    95,  222,   76,  255}, 
	{     66,    -52,     51,     0,     0,     0,    59,  154,   45,  255}, 
	{     13,     33,     91,     0,     0,     0,    18,   32,  121,  255}, 
	{    100,      1,    -23,     0,     0,     0,   124,    9,  234,  255}, 
	{    100,      1,     24,     0,     0,     0,   122,   23,   22,  255}, 
	{     93,    -36,     26,     0,     0,     0,   107,  191,   13,  255}, 
	{     93,    -36,    -25,     0,     0,     0,   102,  183,  240,  255}, 
	{     54,    -63,      0,     0,     0,     0,    48,  139,    0,  255}, 
	{     80,     14,     62,     0,     0,     0,    96,   40,   71,  255}, 
	{     44,     51,     75,     0,     0,     0,    60,   52,   98,  255}, 
	{     80,     14,    -61,     0,     0,     0,    96,   40,  184,  255}, 
	{     47,      3,    -88,     0,     0,     0,    48,    9,  139,  255}, 
	{     43,     51,    -74,     0,     0,     0,    60,   50,  157,  255}, 
	{     84,    -29,    -62,     0,     0,     0,    95,  222,  180,  255}, 
	{     12,     33,    -90,     0,     0,     0,    17,   32,  135,  255}, 
	{     47,     75,    -34,     0,     0,     0,    62,  106,  226,  255}, 
	{     28,     85,     30,     0,     0,     0,    44,  118,    8,  255}, 
	{     47,     75,     35,     0,     0,     0,    57,  106,   38,  255}, 
	{     28,     85,    -29,     0,     0,     0,    45,  117,  242,  255}, 
	{      9,     89,     41,     0,     0,     0,    20,  120,   35,  255}, 
	{      9,     89,    -40,     0,     0,     0,    16,  123,  231,  255}, 
	{    -15,     88,     35,     0,     0,     0,   236,  122,   28,  255}, 
	{    -15,     87,    -35,     0,     0,     0,   234,  118,  218,  255}, 
	{      3,     77,    -61,     0,     0,     0,     3,  106,  187,  255}, 
	{    -43,     83,    -24,     0,     0,     0,   204,  114,  238,  255}, 
	{    -28,     63,    -74,     0,     0,     0,   209,   79,  170,  255}, 
	{    -40,     72,    -54,     0,     0,     0,   197,   95,  198,  255}, 
	{    -40,     72,     55,     0,     0,     0,   196,   94,   58,  255}, 
	{    -43,     83,     25,     0,     0,     0,   188,  105,   17,  255}, 
	{    -28,     63,     75,     0,     0,     0,   208,   80,   85,  255}, 
	{     80,     14,    -61,     0,     0,     0,    96,   40,  184,  255}, 
	{     43,     51,    -74,     0,     0,     0,    60,   50,  157,  255}, 
	{     48,     64,    -58,     0,     0,     0,    77,   80,  197,  255}, 
	{      3,     77,     62,     0,     0,     0,     4,  106,   68,  255}, 
	{      9,     89,     41,     0,     0,     0,    20,  120,   35,  255}, 
	{    -15,     88,     35,     0,     0,     0,   236,  122,   28,  255}, 
	{     47,     75,     35,     0,     0,     0,    57,  106,   38,  255}, 
	{     48,     64,     59,     0,     0,     0,    77,   81,   58,  255}, 
	{     82,     37,     27,     0,     0,     0,   102,   72,   20,  255}, 
	{     32,     62,     74,     0,     0,     0,    41,   83,   86,  255}, 
	{     44,     51,     75,     0,     0,     0,    60,   52,   98,  255}, 
	{     80,     14,     62,     0,     0,     0,    96,   40,   71,  255}, 
	{    100,      1,     24,     0,     0,     0,   122,   23,   22,  255}, 
	{     82,     37,    -26,     0,     0,     0,   105,   67,  236,  255}, 
	{     32,     62,    -73,     0,     0,     0,    41,   82,  169,  255}, 
	{     47,     75,    -34,     0,     0,     0,    62,  106,  226,  255}, 
	{     80,     14,    -61,     0,     0,     0,    96,   40,  184,  255}, 
	{     82,     37,    -26,     0,     0,     0,   105,   67,  236,  255}, 
	{    100,      1,    -23,     0,     0,     0,   124,    9,  234,  255}, 
	{     20,    -61,    -67,     0,     0,     0,    10,  154,  183,  255}, 
	{     66,    -52,    -50,     0,     0,     0,    59,  154,  211,  255}, 
	{     54,    -63,      0,     0,     0,     0,    48,  139,    0,  255}, 
	{    -27,    -25,    -86,     0,     0,     0,   203,  213,  150,  255}, 
	{      6,    -10,    -92,     0,     0,     0,     0,  235,  131,  255}, 
	{    -29,    -58,    -59,     0,     0,     0,   201,  154,  207,  255}, 
	{      8,    -74,      0,     0,     0,     0,   253,  130,    0,  255}, 
	{    -59,    -28,    -37,     0,     0,     0,   144,  213,  217,  255}, 
	{    -30,    -66,      0,     0,     0,     0,   184,  152,    0,  255}, 
	{    -27,     26,    -89,     0,     0,     0,   199,   15,  144,  255}, 
	{     12,     33,    -90,     0,     0,     0,    17,   32,  135,  255}, 
	{     20,    -61,     68,     0,     0,     0,    10,  153,   73,  255}, 
	{     66,    -52,     51,     0,     0,     0,    59,  154,   45,  255}, 
	{      8,    -74,      0,     0,     0,     0,   253,  130,    0,  255}, 
	{     20,    -61,     68,     0,     0,     0,    10,  153,   73,  255}, 
	{    -29,    -58,     59,     0,     0,     0,   200,  153,   48,  255}, 
	{    -27,    -25,     87,     0,     0,     0,   203,  211,  105,  255}, 
	{      6,    -11,     93,     0,     0,     0,     0,  234,  124,  255}, 
	{    -27,     26,     91,     0,     0,     0,   200,   14,  112,  255}, 
	{     13,     33,     91,     0,     0,     0,    18,   32,  121,  255}, 
	{    -59,    -28,     38,     0,     0,     0,   141,  216,   33,  255}, 
	{    -30,    -66,      0,     0,     0,     0,   184,  152,    0,  255}, 
	{    -28,     63,    -74,     0,     0,     0,   209,   79,  170,  255}, 
	{    -27,     26,    -89,     0,     0,     0,   199,   15,  144,  255}, 
	{    -71,     54,    -29,     0,     0,     0,   143,   42,  218,  255}, 
	{    -59,    -28,    -37,     0,     0,     0,   144,  213,  217,  255}, 
	{    -71,     54,     30,     0,     0,     0,   148,   42,   49,  255}, 
	{    -43,     83,     25,     0,     0,     0,   188,  105,   17,  255}, 
	{    -43,     83,    -24,     0,     0,     0,   204,  114,  238,  255}, 
	{    -71,     54,    -29,     0,     0,     0,   143,   42,  218,  255}, 
	{    -43,     83,    -24,     0,     0,     0,   204,  114,  238,  255}, 
	{    -40,     72,    -54,     0,     0,     0,   197,   95,  198,  255}, 
	{    -59,    -28,    -37,     0,     0,     0,   144,  213,  217,  255}, 
	{    -59,    -28,     38,     0,     0,     0,   141,  216,   33,  255}, 
	{    -28,     63,    -74,     0,     0,     0,   209,   79,  170,  255}, 
	{    -43,     83,     25,     0,     0,     0,   188,  105,   17,  255}, 
	{    -71,     54,     30,     0,     0,     0,   148,   42,   49,  255}, 
	{    -30,    -66,      0,     0,     0,     0,   184,  152,    0,  255}, 
	{    -27,     26,     91,     0,     0,     0,   200,   14,  112,  255}, 
	{    -28,     63,     75,     0,     0,     0,   208,   80,   85,  255}, 
	{    -40,     72,     55,     0,     0,     0,   196,   94,   58,  255}, 
	{     13,     33,     91,     0,     0,     0,    18,   32,  121,  255}, 
	{     -4,     58,     84,     0,     0,     0,   251,   67,  107,  255}, 
	{    -27,     26,    -89,     0,     0,     0,   199,   15,  144,  255}, 
	{     -4,     58,    -82,     0,     0,     0,   249,   66,  148,  255}, 
	{     12,     33,    -90,     0,     0,     0,    17,   32,  135,  255}, 
	{    -28,     63,    -74,     0,     0,     0,   209,   79,  170,  255}, 
	{     80,     14,    -61,     0,     0,     0,    96,   40,  184,  255}, 
	{    100,      1,    -23,     0,     0,     0,   124,    9,  234,  255}, 
	{     84,    -29,    -62,     0,     0,     0,    95,  222,  180,  255}, 
	{     93,    -36,    -25,     0,     0,     0,   102,  183,  240,  255}, 
	{     66,    -52,    -50,     0,     0,     0,    59,  154,  211,  255}, 
	{     54,    -63,      0,     0,     0,     0,    48,  139,    0,  255}, 
	{     66,    -52,     51,     0,     0,     0,    59,  154,   45,  255}, 
	{     93,    -36,     26,     0,     0,     0,   107,  191,   13,  255}, 
	{     84,    -29,     63,     0,     0,     0,    95,  222,   76,  255}, 
	{    100,      1,     24,     0,     0,     0,   122,   23,   22,  255}, 
	{     80,     14,     62,     0,     0,     0,    96,   40,   71,  255}, 
	{     17,     66,    -75,     0,     0,     0,    23,   88,  168,  255}, 
	{     -4,     58,    -82,     0,     0,     0,   249,   66,  148,  255}, 
	{      3,     77,    -61,     0,     0,     0,     3,  106,  187,  255}, 
	{    -28,     63,    -74,     0,     0,     0,   209,   79,  170,  255}, 
	{     32,     62,     74,     0,     0,     0,    41,   83,   86,  255}, 
	{     17,     66,     76,     0,     0,     0,    25,   88,   87,  255}, 
	{     13,     33,     91,     0,     0,     0,    18,   32,  121,  255}, 
	{    -28,     63,     75,     0,     0,     0,   208,   80,   85,  255}, 
	{     -4,     58,     84,     0,     0,     0,   251,   67,  107,  255}, 
	{      3,     77,     62,     0,     0,     0,     4,  106,   68,  255}, 
	{    -15,     88,     35,     0,     0,     0,   236,  122,   28,  255}, 
	{     12,     33,    -90,     0,     0,     0,    17,   32,  135,  255}, 
	{     32,     62,    -73,     0,     0,     0,    41,   82,  169,  255}, 
	{     43,     51,    -74,     0,     0,     0,    60,   50,  157,  255}, 
	{     44,     51,     75,     0,     0,     0,    60,   52,   98,  255}, 
};

static Gfx gfx_mario_body_near_0[] = {
	gsSPVertex(&vtx_mario_body_near[0], 14, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     2, 3, 0, 0),
	gsSP2Triangles( 1, 4, 2, 0,     5, 6, 2, 0),
	gsSP2Triangles( 4, 5, 2, 0,     7, 8, 9, 0),
	gsSP2Triangles(10, 7, 9, 0,     9,11,12, 0),
	gsSP2Triangles(12,13, 9, 0,    13,10, 9, 0),
	gsSPEndDisplayList() 
};

static Gfx gfx_mario_body_near_1[] = {

	gsSPVertex(&vtx_mario_body_near[49], 15, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     0, 3, 1, 0),
	gsSP2Triangles( 4, 1, 5, 0,     1, 3, 5, 0),
	gsSP2Triangles( 4, 5, 6, 0,     5, 7, 6, 0),
	gsSP2Triangles( 7, 5, 8, 0,     9, 6, 7, 0),
	gsSP2Triangles( 7, 8,10, 0,    10,11, 7, 0),
	gsSP2Triangles( 9, 7,11, 0,    12, 6,13, 0),
	gsSP2Triangles( 9,13, 6, 0,     6,12,14, 0),
	gsSPVertex(&vtx_mario_body_near[64], 16, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     3, 4, 5, 0),
	gsSP2Triangles( 6, 7, 8, 0,     9,10, 7, 0),
	gsSP2Triangles( 7,10,11, 0,    11, 8, 7, 0),
	gsSP2Triangles(12, 8,11, 0,    13, 0, 2, 0),
	gsSP2Triangles( 2, 1,14, 0,     2,15,13, 0),
	gsSPVertex(&vtx_mario_body_near[80], 16, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     3, 4, 5, 0),
	gsSP2Triangles( 3, 6, 7, 0,     3, 8, 6, 0),
	gsSP2Triangles( 5, 9, 3, 0,     8, 3, 9, 0),
	gsSP2Triangles( 6, 8,10, 0,    11,10, 8, 0),
	gsSP2Triangles( 9,11, 8, 0,     6,12, 7, 0),
	gsSP2Triangles(12, 6,10, 0,     7,12,13, 0),
	gsSP2Triangles(14, 5,15, 0,    14, 9, 5, 0),
	gsSPVertex(&vtx_mario_body_near[96], 16, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     2, 1, 3, 0),
	gsSP2Triangles( 1, 4, 3, 0,     5, 4, 6, 0),
	gsSP2Triangles( 4, 5, 3, 0,     2, 3, 7, 0),
	gsSP2Triangles( 7, 3, 5, 0,     8, 2, 7, 0),
	gsSP2Triangles( 2, 8, 0, 0,     9,10,11, 0),
	gsSP2Triangles(12,11,10, 0,    11, 7,13, 0),
	gsSP1Triangle(14,15,11, 0),
	gsSPVertex(&vtx_mario_body_near[112], 14, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     0, 3, 4, 0),
	gsSP2Triangles( 2, 5, 0, 0,     6, 0, 7, 0),
	gsSP2Triangles( 4, 3, 8, 0,     9, 7, 4, 0),
	gsSP2Triangles( 7,10,11, 0,    11, 6, 7, 0),
	gsSP2Triangles( 9,12,13, 0,    10, 9,13, 0),
	gsSP1Triangle( 7, 9,10, 0),
	gsSPVertex(&vtx_mario_body_near[126], 15, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     0, 3, 1, 0),
	gsSP2Triangles( 4, 5, 6, 0,     5, 7, 6, 0),
	gsSP2Triangles( 6, 7, 8, 0,     9, 8, 7, 0),
	gsSP2Triangles(10,11,12, 0,    12,11,13, 0),
	gsSP2Triangles(14,12,13, 0,    11,10, 9, 0),
	gsSPVertex(&vtx_mario_body_near[141], 15, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     3, 2, 1, 0),
	gsSP2Triangles( 4, 5, 6, 0,     7, 8, 9, 0),
	gsSP2Triangles(10, 7, 9, 0,     9, 8, 5, 0),
	gsSP2Triangles( 5, 8, 6, 0,    11, 1, 0, 0),
	gsSP2Triangles(11,12,13, 0,     6,14, 4, 0),
	gsSP1Triangle(11, 0,12, 0),

	gsDPPipeSync(),
	gsDPSetEnvColor(255,  0,  0,255),
	gsSPVertex(&vtx_mario_body_near[14], 16, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     0, 2, 3, 0),
	gsSP2Triangles( 4, 3, 2, 0,     4, 5, 3, 0),
	gsSP2Triangles( 6, 7, 8, 0,     6, 9, 7, 0),
	gsSP2Triangles( 6, 8,10, 0,    11, 8,12, 0),
	gsSP2Triangles(12, 8, 7, 0,     8,11,10, 0),
	gsSP1Triangle(13,14,15, 0),
	gsSPVertex(&vtx_mario_body_near[30], 14, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     1, 3, 2, 0),
	gsSP2Triangles( 3, 1, 4, 0,     4, 1, 5, 0),
	gsSP2Triangles( 6, 2, 3, 0,     7, 8, 9, 0),
	gsSP2Triangles( 7, 9,10, 0,    11,10, 9, 0),
	gsSP2Triangles(12, 3, 4, 0,    13, 3,12, 0),
	gsSP1Triangle( 6, 3,13, 0),
	gsSPVertex(&vtx_mario_body_near[44],  5, 0), 
	gsSP2Triangles( 0, 1, 2, 0,     3, 1, 0, 0),
	gsSP1Triangle( 1, 4, 2, 0),
	gsSPEndDisplayList()
};


Gfx RCP_mario_near_body[] = {
	gsDPPipeSync(),
	gsDPSetCycleType(G_CYC_2CYCLE),

	gsDPSetEnvColor(  0,  0,255,255),

	gsDPSetCombineMode(G_CC_MARIO_ENVTEX, G_CC_MARIO_ENVTEX2),
	gsDPSetTile(G_IM_FMT_RGBA,G_IM_SIZ_16b, 0, 0, 7, 0,  0,0,0, 0,0,0),

	gsSPTexture(0xffff,0xffff, 0, 0, G_ON),

	gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b, 32, 32,  0, 0, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD, G_TX_CLAMP|G_TX_NOMIRROR, 5, G_TX_NOLOD),

		gs_Tani_LoadTextureImage2(m_button_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
		gsSPDisplayList(gfx_mario_body_near_0),

	gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),



	gsDPPipeSync(),
	gsDPSetCycleType(G_CYC_1CYCLE),
	gsDPSetCombineMode(G_CC_MARIO_ENVCOL, G_CC_MARIO_ENVCOL),

	gsSPDisplayList(gfx_mario_body_near_1),

	gsSPEndDisplayList() 
};