143 lines
4.1 KiB
Plaintext
143 lines
4.1 KiB
Plaintext
|
|
#ifdef GFX_SHAPE
|
|
|
|
/**************************************************************/
|
|
/* shape data pirania_anim_swim (skeleton & animation) */
|
|
/**************************************************************/
|
|
|
|
static long long pirania_dmmy = 0;
|
|
|
|
#include "pirania_texture.h"
|
|
#include "pira_body_shape.sou"
|
|
#include "pira_sebire_shape.sou"
|
|
#include "pira_tail_shape.sou"
|
|
|
|
|
|
|
|
#define ShapeColor_pirania_anim_swim(r,g,b) ShapeColor(r,g,b)
|
|
|
|
/****************
|
|
(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, -5, -3, -1, 1, 3, 5, 7,
|
|
9, 10, 11, 11, 11, 10, 9, 7,
|
|
5, 3, 1, -1, -3, -5, -6, -8,
|
|
-9, -9, -9, -8, -7, -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, -970,-1133,
|
|
-1239,-1277,-1244,-1150,-1006, -820, -602, -361,
|
|
-106, 153, 409, 650, 868, 1054, 1198, 1292,
|
|
1325, 1292, 1198, 1054, 868, 650, 409, 153,
|
|
-106, -361, -602, -820, 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, 168, 707, 1229, 1717, 2155, 2525,
|
|
2810, 2993, 3058, 2974, 2738, 2376, 1912, 1373,
|
|
783, 168, -446,-1036,-1575,-2039,-2401,-2637,
|
|
-2721,-2647,-2440,-2120,-1707,-1223, -686, -120,
|
|
1208, 1170, 1065, 903, 696, 455, 192, -82,
|
|
-357, -620, -861,-1068,-1230,-1335,-1373,-1340,
|
|
-1247,-1104, -920, -704, -464, -211, 46, 299,
|
|
538, 755, 939, 1082, 1175, 1208,};
|
|
|
|
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 */
|
|
/*-------------------------------------------------------------*/
|
|
|
|
#endif
|
|
|
|
|
|
#ifdef HMS_SHAPE
|
|
|
|
extern Gfx gfx_pira_tail[];
|
|
extern Gfx gfx_pira_sebire[];
|
|
extern Gfx gfx_pira_body[];
|
|
|
|
Hierarchy RCP_HmsEnemypirania[] = {
|
|
hmsScale(0.25f)
|
|
hmsBegin()
|
|
hmsJoint(RM_SURF,NULL,0,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()
|
|
hmsExit()
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
// extern AnimeRecord pirania_anim_swim_anm[];
|
|
// extern Hierarchy RCP_HmsEnemypirania[];
|
|
/*=============================================================*/
|
|
/* END END */
|
|
/*=============================================================*/
|
|
|
|
|
|
#ifdef GFX_SHAPE
|
|
|
|
AnimePtr pirania_anime[] = {
|
|
&pirania_anim_swim_anm,
|
|
};
|
|
|
|
static long long pirania_dmmy_end = 0;
|
|
|
|
#endif
|
|
|
|
|
|
/*=============================================================*/
|
|
/* END END */
|
|
/*=============================================================*/
|
|
|