SPRITE_BODY		=  0;
SPRITE_ARML		=  1;
SPRITE_ARMR		=  2;
SPRITE_FOOTL	=  3;
SPRITE_FOOTR	=  4;
SPRITE_ROLL		=  5;
SPRITE_PILECANON=  6;
SPRITE_WEPARM	=  7;
SPRITE_DRILL	=  8;
SPRITE_ELECARM	=  9;
SPRITE_GUN		= 10;
SPRITE_GUNFIRE	= 11;
SPRITE_BULLET	= 12;
SPRITE_PILE		= 13;
SPRITE_MISSILE	= 14;

SOUND_DAMAGE1	= 0;
SOUND_DAMAGE2	= 1;
SOUND_STEP		= 2;
SOUND_ATTACK	= 3;	/* 銃声 */
SOUND_MOTOR		= 4;	/* モーター音 */
SOUND_BLOOD		= 5;	/* 突き刺し音 */
SOUND_DRILL		= 6;	/* DRILL */
SOUND_SHOT		= 7;	/* 杭撃ち・ミサイル撃ち音 */
SOUND_CLASH		= 8;	/* 叩きつけ */
SOUND_ROLLER	= 9;	/* ローラー */

PARTS_BODY		=  0;
PARTS_ARMLT1	=  1;
PARTS_ARMLT2	=  2;
PARTS_FOOTLT	=  3;
PARTS_ARMLB1	=  4;
PARTS_ARMLB2	=  5;
PARTS_FOOTLB	=  6;
PARTS_ARMRT1	=  7;
PARTS_ARMRT2	=  8;
PARTS_FOOTRT	=  9;
PARTS_ARMRB1	= 10;
PARTS_ARMRB2	= 11;
PARTS_FOOTRB	= 12;
PARTS_ROLLL		= 13;
PARTS_ROLLR		= 14;
PARTS_PILECANONL= 15;
PARTS_PILECANONR= 16;
PARTS_WEPARML1	= 17;
PARTS_WEPARML2	= 18;
PARTS_DRILL		= 19;
PARTS_WEPARMR1	= 20;
PARTS_WEPARMR2	= 21;
PARTS_ELECARM	= 22;
PARTS_GUN		= 23;
PARTS_GUNFIRE	= 24;

START_WAIT				= 0;
STAND_C					= 1;
STAND_C2L				= 2;
STAND_L					= 3;
STAND_L2C				= 4;
STAND_C2R				= 5;
STAND_R					= 6;
STAND_R2C				= 7;
WALKUP					= 8;
DRILL_RIGHT				= 9;
DRILL_RIGHT_FINISH		=10;
DRILL_LEFTUP			=11;
DRILL_LEFTUP_FINISH 	=12;
DRILL_LEFTDOWN			=13;
DRILL_LEFTDOWN_FINISH	=14;
ARMHOLD_LEFT			=15;
ARMHOLD_LEFT_CATCH		=16;
ARMHOLD_RIGHTUP			=17;
ARMHOLD_RIGHTUP_CATCH	=18;
ARMHOLD_RIGHTDOWN		=19;
ARMHOLD_RIGHTDOWN_CATCH	=20;
ROLLER					=21;
WALKPRESS_1STSTEP		=22;
WALKPRESS_2NDSTEP		=23;
DROP_SMALL				=24;
DROP_LARGE				=25;
MISSILE_SHOT			=26;
DEAD_MOTION				=27;

BIND_ROOT					= 0;
BIND_DRILL_LEFTUP_FINISH	= 1;
BIND_DRILL_LEFTDOWN_FINISH	= 2;
BIND_DRILL_RIGHT_FINISH		= 3;
BIND_ARMHOLD_LEFT_CATCH		= 4;
BIND_ARMHOLD_RIGHT_CATCH	= 5;
BIND_ROLLER					= 6;
BIND_WALKPRESS_LEFTUP		= 7;
BIND_WALKPRESS_LEFTDOWN		= 8;
BIND_WALKPRESS_RIGHTUP		= 9;
BIND_WALKPRESS_RIGHTDOWN	=10;

/*----------------------------------------*/
/* 必須ステータス */
HP = 3000;

MotionNumber		= 30;
KeyFrameNumber		= 30;
PartsNumber			= 25;
BindNumber			= 11;
BindKeyFrameNumber	= 60;

ProcessNum[PARTS_BODY	] = 0; DrawNum[PARTS_BODY	] = 2; ParentParts[PARTS_BODY	] = -1;				SpriteParts[PARTS_BODY	] = SPRITE_BODY;
ProcessNum[PARTS_ARMLT1	] = 1; DrawNum[PARTS_ARMLT1	] = 3; ParentParts[PARTS_ARMLT1	] = PARTS_BODY;		SpriteParts[PARTS_ARMLT1] = SPRITE_ARML;
ProcessNum[PARTS_ARMLT2	] = 2; DrawNum[PARTS_ARMLT2	] = 4; ParentParts[PARTS_ARMLT2	] = PARTS_ARMLT1;	SpriteParts[PARTS_ARMLT2] = SPRITE_ARML;
ProcessNum[PARTS_FOOTLT	] = 3; DrawNum[PARTS_FOOTLT	] = 5; ParentParts[PARTS_FOOTLT	] = PARTS_ARMLT2;	SpriteParts[PARTS_FOOTLT] = SPRITE_FOOTL;
ProcessNum[PARTS_ARMLB1	] = 4; DrawNum[PARTS_ARMLB1	] = 6; ParentParts[PARTS_ARMLB1	] = PARTS_BODY;		SpriteParts[PARTS_ARMLB1] = SPRITE_ARML;
ProcessNum[PARTS_ARMLB2	] = 5; DrawNum[PARTS_ARMLB2	] = 7; ParentParts[PARTS_ARMLB2	] = PARTS_ARMLB1;	SpriteParts[PARTS_ARMLB2] = SPRITE_ARML;
ProcessNum[PARTS_FOOTLB	] = 6; DrawNum[PARTS_FOOTLB	] = 8; ParentParts[PARTS_FOOTLB	] = PARTS_ARMLB2;	SpriteParts[PARTS_FOOTLB] = SPRITE_FOOTL;
ProcessNum[PARTS_ARMRT1	] = 7; DrawNum[PARTS_ARMRT1	] = 9; ParentParts[PARTS_ARMRT1	] = PARTS_BODY;		SpriteParts[PARTS_ARMRT1] = SPRITE_ARMR;
ProcessNum[PARTS_ARMRT2	] = 8; DrawNum[PARTS_ARMRT2	] =10; ParentParts[PARTS_ARMRT2	] = PARTS_ARMRT1;	SpriteParts[PARTS_ARMRT2] = SPRITE_ARMR;
ProcessNum[PARTS_FOOTRT	] = 9; DrawNum[PARTS_FOOTRT	] =11; ParentParts[PARTS_FOOTRT	] = PARTS_ARMRT2;	SpriteParts[PARTS_FOOTRT] = SPRITE_FOOTR;
ProcessNum[PARTS_ARMRB1	] =10; DrawNum[PARTS_ARMRB1	] =12; ParentParts[PARTS_ARMRB1	] = PARTS_BODY;		SpriteParts[PARTS_ARMRB1] = SPRITE_ARMR;
ProcessNum[PARTS_ARMRB2	] =11; DrawNum[PARTS_ARMRB2	] =13; ParentParts[PARTS_ARMRB2	] = PARTS_ARMRB1;	SpriteParts[PARTS_ARMRB2] = SPRITE_ARMR;
ProcessNum[PARTS_FOOTRB	] =12; DrawNum[PARTS_FOOTRB	] =14; ParentParts[PARTS_FOOTRB	] = PARTS_ARMRB2;	SpriteParts[PARTS_FOOTRB] = SPRITE_FOOTR;

ProcessNum[PARTS_ROLLL		] =13; DrawNum[PARTS_ROLLL		] = 0; ParentParts[PARTS_ROLLL		] = PARTS_BODY;		SpriteParts[PARTS_ROLLL		] = SPRITE_ROLL;
ProcessNum[PARTS_ROLLR		] =14; DrawNum[PARTS_ROLLR		] = 1; ParentParts[PARTS_ROLLR		] = PARTS_BODY;		SpriteParts[PARTS_ROLLR		] = SPRITE_ROLL;
ProcessNum[PARTS_PILECANONL	] =15; DrawNum[PARTS_PILECANONL	] =15; ParentParts[PARTS_PILECANONL	] = PARTS_BODY;		SpriteParts[PARTS_PILECANONL] = SPRITE_PILECANON;
ProcessNum[PARTS_PILECANONR	] =16; DrawNum[PARTS_PILECANONR	] =16; ParentParts[PARTS_PILECANONR	] = PARTS_BODY;		SpriteParts[PARTS_PILECANONR] = SPRITE_PILECANON;

ProcessNum[PARTS_WEPARML1	] =17; DrawNum[PARTS_WEPARML1	] =19; ParentParts[PARTS_WEPARML1	] = PARTS_BODY;		SpriteParts[PARTS_WEPARML1	] = SPRITE_WEPARM;
ProcessNum[PARTS_WEPARML2	] =18; DrawNum[PARTS_WEPARML2	] =18; ParentParts[PARTS_WEPARML2	] = PARTS_WEPARML1;	SpriteParts[PARTS_WEPARML2	] = SPRITE_WEPARM;
ProcessNum[PARTS_DRILL		] =19; DrawNum[PARTS_DRILL		] =17; ParentParts[PARTS_DRILL		] = PARTS_WEPARML2;	SpriteParts[PARTS_DRILL		] = SPRITE_DRILL;
ProcessNum[PARTS_WEPARMR1	] =20; DrawNum[PARTS_WEPARMR1	] =22; ParentParts[PARTS_WEPARMR1	] = PARTS_BODY;		SpriteParts[PARTS_WEPARMR1	] = SPRITE_WEPARM;
ProcessNum[PARTS_WEPARMR2	] =21; DrawNum[PARTS_WEPARMR2	] =21; ParentParts[PARTS_WEPARMR2	] = PARTS_WEPARMR1;	SpriteParts[PARTS_WEPARMR2	] = SPRITE_WEPARM;
ProcessNum[PARTS_ELECARM	] =22; DrawNum[PARTS_ELECARM	] =20; ParentParts[PARTS_ELECARM	] = PARTS_WEPARMR2;	SpriteParts[PARTS_ELECARM	] = SPRITE_ELECARM;

ProcessNum[PARTS_GUN		] =23; DrawNum[PARTS_GUN		] =23; ParentParts[PARTS_GUN		] = PARTS_BODY;		SpriteParts[PARTS_GUN		] = SPRITE_GUN;
ProcessNum[PARTS_GUNFIRE	] =24; DrawNum[PARTS_GUNFIRE	] =24; ParentParts[PARTS_GUNFIRE	] = PARTS_GUN;		SpriteParts[PARTS_GUNFIRE	] = SPRITE_GUNFIRE;

/* 任意の変数 */
global.BOSSID = id;
global.BOSSHPMAX = HP;
countLiveFoot = 4;

GuideFlag	   = 0;
Mode		   = 0;
Counter		   = 0;
AnimationIndex = 0;
FireDirection  = image_angle;
Bullet[ 0]  = noone;
Bullet[ 1]  = noone;
Bullet[ 2]  = noone;
Bullet[ 3]  = noone;
Bullet[ 4]  = noone;
Bullet[ 5]  = noone;
Bullet[ 6]  = noone;
Bullet[ 7]  = noone;
Bullet[ 8]  = noone;
Bullet[ 9]  = noone;
Bullet[10]  = noone;
Bullet[11]  = noone;
Bullet[12]  = noone;
Bullet[13]  = noone;
Bullet[14]  = noone;
Bullet[15]  = noone;
Bullet[16]  = noone;
Bullet[17]  = noone;
Bullet[18]  = noone;
Bullet[19]  = noone;

Pile[ 0]    = noone;
Pile[ 1]    = noone;
Pile[ 2]    = noone;
Pile[ 3]    = noone;
Pile[ 4]    = noone;
Pile[ 5]    = noone;

Missile[ 0] = noone;
Missile[ 1] = noone;
Missile[ 2] = noone;
Missile[ 3] = noone;
Missile[ 4] = noone;
Missile[ 5] = noone;

if(!EDIT()){
	FootCollisionLT = instance_create(x,y,objExistOnlyEnemy);
	FootCollisionLB = instance_create(x,y,objExistOnlyEnemy);
	FootCollisionRT = instance_create(x,y,objExistOnlyEnemy);
	FootCollisionRB = instance_create(x,y,objExistOnlyEnemy);
}