/*================================================================================================== bat Shape Gfx Data ====================================================================================================*/ /*##################################################*/ #ifdef GFX_SHAPE /*##################################################*/ /**************************************************************/ /* shape data bat_fly (skeleton & animation) */ /**************************************************************/ #define ShapeColor_bat_fly(r,g,b) ShapeColor(r,g,b) #define STAGE7_BAT_FOG_R 0 #define STAGE7_BAT_FOG_G 0 #define STAGE7_BAT_FOG_B 0 #define STAGE7_BAT_FOG_START 960 /*-------------------------------------------------------------*/ /* light data */ /*-------------------------------------------------------------*/ static Lights1 light_bat_fly[]={ ShapeColor_bat_fly(42,0,149), ShapeColor_bat_fly(255,255,255), }; #include "bat_texture.h" #include "bat_head_shape.sou" #include "bat_body_shape.sou" #include "bat_ear_shape.sou" #include "bat_Lwing_shape.sou" #include "bat_Rwing_shape.sou" /*-------------------------------------------------------------*/ /* animation data */ /*-------------------------------------------------------------*/ static short bat_fly_prm[]={ 0, 48, 5,16383, 8191, 5406, 234,-2551, -945, 2623, 6286, 8172, 8191, 5649, 929,-1612, -147, 3110, 6453, 8174,24483,16383,-8100,-24483, -16383,-8100,-2408,-2137,-1635,-1364,-1520,-1867, -2223,-2406,-2408,-2137,-1635,-1364,-1520,-1867, -2223,-2406,20268,19862,19109,18703,18937,19457, 19990,20265,}; static unsigned short bat_fly_tbl[]= { 1, 0, /* chn5(7) */ 1, 1, 1, 2, 1, 0, /* chn5(7) */ 1, 3, 1, 0, 1, 0, /* bat_body(6) */ 1, 0, 8, 42, 1, 0, /* bat_head(5) */ 1, 0, 8, 34, 1, 0, /* bat_ear(4) */ 1, 0, 8, 26, 1, 23, /* chn1(3) */ 1, 24, 1, 25, 1, 0, /* bat_Lwing(0) */ 1, 0, 8, 4, 1, 20, /* chn3(2) */ 1, 21, 1, 22, 1, 0, /* bat_Rwing(1) */ 1, 0, 8, 12, }; AnimeRecord bat_fly_anm={ MAP_ANIM_NORMAL, /* attr */ 0, /* code */ 0, /* start */ 0, /* loop */ 8, 8, bat_fly_prm, bat_fly_tbl }; static short bat_wait_prm[]={ 0, 48, 5,16383, 5110, 5069, 4950, 4760, 4508, 4200, 3844, 3447, 3017, 2561, 2086, 1600, 1111, 625, 150, -305, -735,-1132,-1488,-1796, -2048,-2238,-2357,-2398,-2363,-2262,-2100,-1883, -1617,-1308, -962, -584, -179, 244, 683, 1130, 1581, 2028, 2467, 2891, 3295, 3674, 4020, 4329, 4595, 4812, 4974, 5075, 5110, 5110,32763,32763, 32763,32763,32763,32763,32763,32764,32764,32764, 32764,32765,32765,32765,32765,32766,32766,32766, 32766,32766,32766,32766,32766,-32767,32766,32766, 32766,32766,32766,32766,32766,32766,32765,32765, 32765,32765,32765,32764,32764,32764,32764,32764, 32763,32763,32763,32763,32763,32763,32763,32763, 32765,32765,32765,32765,32765,32765,32765,32765, 32765,32764,32764,32764,32764,32764,32764,32764, 32764,32764,32764,32764,32764,32764,32764,32764, 32764,32764,32764,32764,32764,32764,32764,32764, 32764,32764,32764,32764,32764,32764,32764,32765, 32765,32765,32765,32765,32765,32765,32765,32765, 32765,32765,-27864,-27906,-28025,-28214,-28467,-28775, -29131,-29528,-29958,-30414,-30889,-31374,-31864,-32350, 32709,32253,31822,31426,31069,30761,30509,30319, 30200,30159,30194,30295,30457,30674,30940,31249, 31596,31974,32378,-32731,-32292,-31844,-31394,-30947, -30508,-30083,-29679,-29301,-28954,-28645,-28380,-28163, -28001,-27899,-27864,-27864,24483,16383,-8100,-24483, -16383,-8100, -217, -217,16200,}; static unsigned short bat_wait_tbl[]= { 1, 0, /* chn5(7) */ 1, 1, 1, 2, 1, 0, /* chn5(7) */ 1, 3, 1, 0, 1, 0, /* bat_body(6) */ 1, 0, 1, 212, 1, 0, /* bat_head(5) */ 1, 0, 1, 211, 1, 0, /* bat_ear(4) */ 1, 0, 1, 210, 1, 207, /* chn1(3) */ 1, 208, 1, 209, 1, 0, /* bat_Lwing(0) */ 1, 0, 50, 4, 1, 204, /* chn3(2) */ 1, 205, 1, 206, 50, 54, /* bat_Rwing(1) */ 50, 104, 50, 154, }; AnimeRecord bat_wait_anm={ MAP_ANIM_NORMAL, /* attr */ 0, /* code */ 0, /* start */ 0, /* loop */ 50, 8, bat_wait_prm, bat_wait_tbl }; /*-------------------------------------------------------------*/ AnimePtr bat_anime[] = { &bat_fly_anm, &bat_wait_anm, }; /*##################################################*/ #else /*##################################################*/ /*================================================================================================== bat Shape Hms Data ====================================================================================================*/ extern Gfx gfx_bat_head[]; extern Gfx gfx_bat_body[]; extern Gfx gfx_bat_ear[]; extern Gfx gfx_bat_Lwing[]; extern Gfx gfx_bat_Rwing[]; Hierarchy RCP_HmsEnemybat[] = { hmsShadow(100,150,1) hmsBegin() hmsScale(0.25f) hmsBegin() hmsJoint(RM_SURF,NULL,0,0,0) /* ,null, */ hmsBegin() hmsJoint(RM_SURF,NULL,0,0,0) /* ,bat_body,(6) */ hmsBegin() hmsBboard(0,0,0) hmsBegin() hmsGfx(RM_SPRITE,gfx_bat_body) hmsEnd() hmsEnd() hmsBegin() hmsJoint(RM_SURF,gfx_bat_head,54,0,0) /* ,bat_head,(5) */ hmsJoint(RM_SURF,gfx_bat_ear,54,0,0) /* ,bat_ear,(4) */ hmsJoint(RM_SURF,NULL,57,-48,0) /* ,chn1,(3) */ hmsBegin() hmsJoint(RM_SPRITE,gfx_bat_Lwing,0,0,0) /* ,bat_Lwing,(0) */ hmsEnd() hmsJoint(RM_SURF,NULL,57,-48,0) /* ,chn3,(2) */ hmsBegin() hmsJoint(RM_SPRITE,gfx_bat_Rwing,0,0,0) /* ,bat_Rwing,(1) */ hmsEnd() hmsEnd() hmsEnd() hmsEnd() hmsEnd() hmsExit() }; // extern AnimeRecord bat_fly_anm[]; // extern Hierarchy RCP_HmsEnemybat_fly[]; /*=============================================================*/ /* END END */ /*=============================================================*/ /*##################################################*/ #endif /*##################################################*/