#define pirania_softspriteON (1)

/**************************************************************/
/*	shape data pirania_anim_swim (skeleton & animation) */
/**************************************************************/

#define ShapeColor_pirania_anim_swim(r,g,b)   ShapeColor(r,g,b)

/*-------------------------------------------------------------*/
/*	light data                                                 */
/*-------------------------------------------------------------*/

static Lights1 light_pirania_anim_swim[]={
};

/*-------------------------------------------------------------*/
/*	vertex & polygon data                                      */
/*-------------------------------------------------------------*/







Gfx pirania_light_sourcex[]={
	gsSPNumLights(NUMLIGHTS_1),
	gsSPEndDisplayList()
};

/**************** 
(0),pira_sebire,RCP_pirania_anim_swim0,NULL,(-1),NULL,(-1),0,0,0
(1),chn2,NULL,NULL,(-1),pira_sebire,(0),32,112,0
(2),pira_tail,RCP_pirania_anim_swim1,chn2,(1),NULL,(-1),160,0,0
(3),pira_body,RCP_pirania_anim_swim2,NULL,(-1),pira_tail,(2),0,0,0
(4),chn1,pirania_light_sourcex,NULL,(-1),pira_body,(3),-1,0,0
****************/ 

/*-------------------------------------------------------------*/
/*	animation data                                      */
/*-------------------------------------------------------------*/

static short pirania_anim_swim_prm[]={
	    0,   -4,   -2,   -1,    1,    3,    5,    6,
	    8,    9,   10,   10,   10,    9,    8,    6,
	    5,    3,    1,   -1,   -2,   -4,   -6,   -7,
	   -8,   -8,   -8,   -7,   -6,   -5,   -3,16383,
	  378,  450,  496,  513,  498,  457,  394,  313,
	  217,  112,    0, -113, -224, -330, -426, -507,
	 -570, -611, -625, -611, -570, -507, -426, -330,
	 -224, -113,    0,  112,  217,  313, -835, -968,
	-1055,-1086,-1059, -983, -865, -713, -535, -338,
	 -129,   82,  290,  487,  665,  817,  935, 1011,
	 1038, 1011,  935,  817,  665,  487,  290,   82,
	 -129, -338, -535, -713, 2967, 2978, 2986, 2988,
	 2986, 2980, 2969, 2957, 2941, 2924, 2907, 2889,
	 2871, 2854, 2839, 2826, 2816, 2809, 2807, 2809,
	 2816, 2826, 2839, 2854, 2871, 2889, 2907, 2924,
	 2941, 2957,  113,  600, 1073, 1514, 1910, 2245,
	 2502, 2668, 2727, 2651, 2438, 2110, 1691, 1203,
	  669,  113, -443, -976,-1464,-1883,-2211,-2424,
	-2500,-2434,-2246,-1957,-1583,-1145, -660, -147,
	 1062, 1031,  943,  809,  637,  437,  218,   -9,
	 -238, -457, -657, -829, -963,-1051,-1082,-1055,
	 -978, -859, -706, -526, -327, -117,   97,  307,
	  506,  686,  839,  958, 1035, 1062,};

static unsigned short pirania_anim_swim_tbl[]= {
	    30,     1,	/* chn1(4) */
	     1,     0,
	     1,     0,
	     1,     0,	/* chn1(4) */
	     1,    31,
	     1,     0,
	     1,     0,	/* pira_body(3) */
	    30,   152,
	     1,     0,
	     1,     0,	/* pira_tail(2) */
	    30,   122,
	     1,     0,
	     1,     0,	/* chn2(1) */
	     1,     0,
	     1,     0,
	    30,    32,	/* pira_sebire(0) */
	    30,    62,
	    30,    92,
};

AnimeRecord pirania_anim_swim_anm={
	MAP_ANIM_NORMAL,	/* attr 	*/
	0,					/* code 	*/
	0,					/* start 	*/
	0,					/* loop 	*/
	30,
	5,
	pirania_anim_swim_prm,
	pirania_anim_swim_tbl
};
/*-------------------------------------------------------------*/
/*	Hms data 			                                       */
/*-------------------------------------------------------------*/

/*
 *    ninjen files
 */

#include "pirania/pirania_texture.h"

#include "pirania/pira_body_shape.sou"

#include "pirania/pira_sebire_shape.sou"

#include "pirania/pira_tail_shape.sou"

Hierarchy RCP_HmsEnemypirania[] = {
 hmsShadow(100,150,1)
 hmsBegin()
 hmsScale(0.25f)
    hmsBegin()
      hmsJoint(RM_SURF,pirania_light_sourcex,-1,0,0)  /* ,chn1,(4) */
      hmsBegin()
             hmsJoint(RM_SURF,gfx_pira_body,0,0,0)  /* ,pira_body,(3) */

         hmsBegin()
                hmsJoint(RM_SURF,gfx_pira_tail,160,0,0)  /* ,pira_tail,(2) */

            hmsJoint(RM_SURF,NULL,32,112,0)  /* ,chn2,(1) */
            hmsBegin()
                   hmsJoint(RM_SURF,gfx_pira_sebire,0,0,0)  /* ,pira_sebire,(0) */

            hmsEnd()
         hmsEnd()
      hmsEnd()
   hmsEnd()
 hmsEnd()
 hmsExit()
};



// extern AnimeRecord pirania_anim_swim_anm[];
// extern Hierarchy RCP_HmsEnemypirania[];
/*=============================================================*/
/*  END END */
/*=============================================================*/


AnimePtr pirania_anime[] = {
	&pirania_anim_swim_anm,
};


static long long pirania_dmmy_end = 0;

/*=============================================================*/
/*  END END */
/*=============================================================*/

