SPRITE_BODY01	=  0;
SPRITE_BODY02	=  1;
SPRITE_HEAD01	=  2;
SPRITE_HEAD02	=  3;
SPRITE_HEAD03	=  4;
SPRITE_HAND01	=  5;
SPRITE_HAND02	=  6;
SPRITE_HAND03	=  7;
SPRITE_FOOT01	=  8;
SPRITE_FOOT02	=  9;
SPRITE_FOOT03	= 10;
SPRITE_EYE01	= 11;
SPRITE_EYE02	= 12;
SPRITE_MOUTH01	= 13;
SPRITE_MOUTH02	= 14;
SPRITE_STOMACH01= 15;
SPRITE_STOMACH02= 16;
SPRITE_STOMACH03= 17;
SPRITE_STOMACH04= 18;
SPRITE_STOMACH05= 19;
SPRITE_STOMACH06= 20;
SPRITE_BULLET	= 21;

SOUND_DAMAGE	= 0;
SOUND_SMASH		= 1;
SOUND_TAKEON	= 2;
SOUND_INSIDE	= 3;
SOUND_DEAD		= 4;

PARTS_BODY01		=  0;
PARTS_BODY02		=  1;
PARTS_HEAD01		=  2;
PARTS_HEAD02		=  3;
PARTS_HEAD03		=  4;
PARTS_HAND_BELOW_01	=  5;
PARTS_HAND_BELOW_02	=  6;
PARTS_HAND_BELOW_03	=  7;
PARTS_FOOT_BELOW_01	=  8;
PARTS_FOOT_BELOW_02	=  9;
PARTS_FOOT_BELOW_03	= 10;
PARTS_HAND_ABOVE_01	= 11;
PARTS_HAND_ABOVE_02	= 12;
PARTS_HAND_ABOVE_03	= 13;
PARTS_FOOT_ABOVE_01	= 14;
PARTS_FOOT_ABOVE_02	= 15;
PARTS_FOOT_ABOVE_03	= 16;
PARTS_EYE01			= 17;
PARTS_EYE02			= 18;
PARTS_MOUTH01		= 19;
PARTS_STOMACH01		= 20;
PARTS_STOMACH02		= 21;
PARTS_STOMACH03		= 22;
PARTS_STOMACH04		= 23;
PARTS_STOMACH05		= 24;
PARTS_STOMACH06		= 25;

STAND						= 0;
JUMP						= 1;
TAKEON						= 2;
HARITE						= 3;
MOUTHATTACK_GROUND			= 4;
MOUTHATTACK_GROUND_SUCCESS	= 5;
MOUTHATTACK_GROUND_RESIST	= 6;
MOUTHATTACK_AIR				= 7;
MOUTHATTACK_AIR_SUCCESS		= 8;
VORE_HEAD					= 9;
VORE_FOOT					= 10;
VORE_HEAD_TOINSIDE			= 11;
VORE_HEAD_INSIDE			= 12;
VORE_HEAD_INSIDE_FINISH		= 13;
VORE_FOOT_TOINSIDE			= 14;
VORE_FOOT_INSIDE			= 15;
VORE_FOOT_INSIDE_FINISH		= 16;
HIJUMP						= 17;
BULLET_EMIT					= 18;
DEAD_MOTION					= 19;


BIND_ROOT				= 0;
/*----------------------------------------*/

/* 必須ステータス */
HP = 10000;

MotionNumber		= 20;
KeyFrameNumber		= 30;
PartsNumber			= 26;
BindNumber			= 0;
BindKeyFrameNumber	= 1;

ProcessNum[PARTS_BODY01			] = 0; DrawNum[PARTS_BODY01			] =13; ParentParts[PARTS_BODY01			] = -1;					SpriteParts[PARTS_BODY01		] = SPRITE_BODY01;
ProcessNum[PARTS_BODY02			] = 1; DrawNum[PARTS_BODY02			] =12; ParentParts[PARTS_BODY02			] = PARTS_BODY01; 		SpriteParts[PARTS_BODY02		] = SPRITE_BODY02;
ProcessNum[PARTS_HEAD01			] = 2; DrawNum[PARTS_HEAD01			] =19; ParentParts[PARTS_HEAD01			] = PARTS_BODY01; 		SpriteParts[PARTS_HEAD01		] = SPRITE_HEAD01;
ProcessNum[PARTS_HEAD02			] = 3; DrawNum[PARTS_HEAD02			] =18; ParentParts[PARTS_HEAD02			] = PARTS_BODY01; 		SpriteParts[PARTS_HEAD02		] = SPRITE_HEAD02;
ProcessNum[PARTS_HEAD03			] = 4; DrawNum[PARTS_HEAD03			] =14; ParentParts[PARTS_HEAD03			] = PARTS_HEAD02; 		SpriteParts[PARTS_HEAD03		] = SPRITE_HEAD03;
ProcessNum[PARTS_HAND_BELOW_01	] = 5; DrawNum[PARTS_HAND_BELOW_01	] = 6; ParentParts[PARTS_HAND_BELOW_01	] = PARTS_BODY01; 		SpriteParts[PARTS_HAND_BELOW_01	] = SPRITE_HAND01;
ProcessNum[PARTS_HAND_BELOW_02	] = 6; DrawNum[PARTS_HAND_BELOW_02	] = 7; ParentParts[PARTS_HAND_BELOW_02	] = PARTS_HAND_BELOW_01;SpriteParts[PARTS_HAND_BELOW_02	] = SPRITE_HAND02;
ProcessNum[PARTS_HAND_BELOW_03	] = 7; DrawNum[PARTS_HAND_BELOW_03	] = 8; ParentParts[PARTS_HAND_BELOW_03	] = PARTS_HAND_BELOW_02;SpriteParts[PARTS_HAND_BELOW_03	] = SPRITE_HAND03;
ProcessNum[PARTS_FOOT_BELOW_01	] = 8; DrawNum[PARTS_FOOT_BELOW_01	] = 9; ParentParts[PARTS_FOOT_BELOW_01	] = PARTS_BODY01; 		SpriteParts[PARTS_FOOT_BELOW_01	] = SPRITE_FOOT01;
ProcessNum[PARTS_FOOT_BELOW_02	] = 9; DrawNum[PARTS_FOOT_BELOW_02	] =10; ParentParts[PARTS_FOOT_BELOW_02	] = PARTS_FOOT_BELOW_01;SpriteParts[PARTS_FOOT_BELOW_02	] = SPRITE_FOOT02;
ProcessNum[PARTS_FOOT_BELOW_03	] =10; DrawNum[PARTS_FOOT_BELOW_03	] =11; ParentParts[PARTS_FOOT_BELOW_03	] = PARTS_FOOT_BELOW_02;SpriteParts[PARTS_FOOT_BELOW_03	] = SPRITE_FOOT03;
ProcessNum[PARTS_HAND_ABOVE_01	] =11; DrawNum[PARTS_HAND_ABOVE_01	] =23; ParentParts[PARTS_HAND_ABOVE_01	] = PARTS_BODY01; 		SpriteParts[PARTS_HAND_ABOVE_01	] = SPRITE_HAND01;
ProcessNum[PARTS_HAND_ABOVE_02	] =12; DrawNum[PARTS_HAND_ABOVE_02	] =24; ParentParts[PARTS_HAND_ABOVE_02	] = PARTS_HAND_ABOVE_01;SpriteParts[PARTS_HAND_ABOVE_02	] = SPRITE_HAND02;
ProcessNum[PARTS_HAND_ABOVE_03	] =13; DrawNum[PARTS_HAND_ABOVE_03	] =25; ParentParts[PARTS_HAND_ABOVE_03	] = PARTS_HAND_ABOVE_02;SpriteParts[PARTS_HAND_ABOVE_03	] = SPRITE_HAND03;
ProcessNum[PARTS_FOOT_ABOVE_01	] =14; DrawNum[PARTS_FOOT_ABOVE_01	] =20; ParentParts[PARTS_FOOT_ABOVE_01	] = PARTS_BODY01; 		SpriteParts[PARTS_FOOT_ABOVE_01	] = SPRITE_FOOT01;
ProcessNum[PARTS_FOOT_ABOVE_02	] =15; DrawNum[PARTS_FOOT_ABOVE_02	] =21; ParentParts[PARTS_FOOT_ABOVE_02	] = PARTS_FOOT_ABOVE_01;SpriteParts[PARTS_FOOT_ABOVE_02	] = SPRITE_FOOT02;
ProcessNum[PARTS_FOOT_ABOVE_03	] =16; DrawNum[PARTS_FOOT_ABOVE_03	] =22; ParentParts[PARTS_FOOT_ABOVE_03	] = PARTS_FOOT_ABOVE_02;SpriteParts[PARTS_FOOT_ABOVE_03	] = SPRITE_FOOT03;
ProcessNum[PARTS_EYE01			] =17; DrawNum[PARTS_EYE01			] =16; ParentParts[PARTS_EYE01			] = PARTS_HEAD01; 		SpriteParts[PARTS_EYE01			] = SPRITE_EYE01;
ProcessNum[PARTS_EYE02			] =18; DrawNum[PARTS_EYE02			] =17; ParentParts[PARTS_EYE02			] = PARTS_EYE01; 		SpriteParts[PARTS_EYE02			] = SPRITE_EYE02;
ProcessNum[PARTS_MOUTH01		] =19; DrawNum[PARTS_MOUTH01		] =15; ParentParts[PARTS_MOUTH01		] = -1;			 		SpriteParts[PARTS_MOUTH01		] = SPRITE_MOUTH01;
ProcessNum[PARTS_STOMACH01		] =20; DrawNum[PARTS_STOMACH01		] = 5; ParentParts[PARTS_STOMACH01		] = PARTS_BODY01; 		SpriteParts[PARTS_STOMACH01		] = SPRITE_STOMACH01;
ProcessNum[PARTS_STOMACH02		] =21; DrawNum[PARTS_STOMACH02		] = 4; ParentParts[PARTS_STOMACH02		] = PARTS_STOMACH01; 	SpriteParts[PARTS_STOMACH02		] = SPRITE_STOMACH02;
ProcessNum[PARTS_STOMACH03		] =22; DrawNum[PARTS_STOMACH03		] = 3; ParentParts[PARTS_STOMACH03		] = PARTS_STOMACH01; 	SpriteParts[PARTS_STOMACH03		] = SPRITE_STOMACH03;
ProcessNum[PARTS_STOMACH04		] =23; DrawNum[PARTS_STOMACH04		] = 0; ParentParts[PARTS_STOMACH04		] = PARTS_STOMACH01; 	SpriteParts[PARTS_STOMACH04		] = SPRITE_STOMACH04;
ProcessNum[PARTS_STOMACH05		] =24; DrawNum[PARTS_STOMACH05		] = 2; ParentParts[PARTS_STOMACH05		] = PARTS_STOMACH01; 	SpriteParts[PARTS_STOMACH05		] = SPRITE_STOMACH05;
ProcessNum[PARTS_STOMACH06		] =25; DrawNum[PARTS_STOMACH06		] = 1; ParentParts[PARTS_STOMACH06		] = PARTS_STOMACH01; 	SpriteParts[PARTS_STOMACH06		] = SPRITE_STOMACH06;
/* 任意の変数 */
VoreCount = 0;
FluidBullet[0] = noone;
FluidBullet[1] = noone;
FluidBullet[2] = noone;
FluidBullet[3] = noone;
FluidBullet[4] = noone;
FluidBullet[5] = noone;
FluidBullet[6] = noone;
FluidBullet[7] = noone;
FluidBullet[8] = noone;
FluidBullet[9] = noone;

/*----------------------------------------*/
/* 舌弾の作成 */
Tawami = 0;
Bullet = createBullet(x,y);
with(Bullet){
	visible		= false;
	speed		= 0;
	direction	= 0;
	Picture		= other.SPRITE_MOUTH02;
	preX		= x;
	preY		= y;
}

global.BOSSID = id;
global.BOSSHPMAX = HP;