
#Title[]
#Text[]
#ScriptVersion[2]

script_enemy_main {
	
        let img = "";
        let frame = 0;

      LoadCommonData;
		@Initialize
		{ 
              SetLife(3000000);
              SetScore(0);
              SetTimer(60);
              LoadGraphic(img);
              SetTexture(img);  SetGraphicRect(0, 0, 64, 64);
             TMain;
		
		}
			
		@MainLoop
		{
    SetCollisionA(GetX, GetY-100000, 24);
    SetCollisionB(GetX, GetY-100000, 24);
   yield;


		}
		
		@DrawLoop
		{
		   DrawGraphic(GetX, GetY);
		}
			
		@Finalize
		{

		}
       task TMain{
               yield;
let aaa=0;

loop(60){yield;}

 let aaa=0;
let aa=0;
  LoadGraphic("script\某マンドリル\dark.bmp");
SetTexture("script\某マンドリル\dark.bmp");
SetAlpha(0);
SetGraphicScale(0,0);
SetGraphicAngle(0,0,0);
DrawGraphic(GetX,GetY);
loop(15){
yield;
SetGraphicScale(aaa,aaa);
aaa=aaa+1;
}
loop{
MotionBlur(SHOT,400,244);
loop(255){yield;
SetAlpha(aa);
aa=aa+1;
}
loop(255){yield;
SetAlpha(aa);
aa=aa-1;
}
}
                   }
         sub move{ let x =rand(64, 384);
                   let y =rand(240, 48);
     SetMovePosition02(GetCenterX+90, GetClipMinY+120,30);
        loop(30) { yield; }
                  }
         task shot{  loop{ let a=rand(10,90);  loop(5){

CreateShotA(11,GetX,GetY,0);
SetShotDataA(11,0,4,90,0,0,9,RED21);
SetShotDataA(11,a,4,180,0,0,9,RED21);
FireShot(11);
  loop(5) { yield; } 
        }
        loop(60) { yield; } 
                 }}
        sub nige{ 
              SetMovePosition02(GetX, GetClipMaxY, 180);
        loop(180) { yield; } 
             VanishEnemy;
                }
	}



