script_enemy_main
{
    let count=0;//Az
    let N15=0;
    let N17=0;
    let ran=0;
    let mm=0;
    let Ang=0;
    let sAng=0;
    let life=0;
    let ten=0;

function dead {
    SetDamageRate(0,0);

    if (N17==50) {
        if (GetCommonDataDefault("miss2",0)==2) {
            CreateEnemyFromFile(GetCurrentScriptDirectory~"Missile.txt",GetX(),GetY(),0,0,1);
            CreateEnemyFromFile(GetCurrentScriptDirectory~"Servant102.txt",GetX,GetY,0,0,2);
        }
        else {
            CreateEnemyFromFile(GetCurrentScriptDirectory~"Servant10.txt",GetX,GetY,0,0,1);
        }
        PlaySE(GetCurrentScriptDirectory~"\se\bom27_b.wav");
        SetCommonData("ii1",GetCommonDataDefault("ii1",0)+GetCommonDataDefault("ii2",0));
        SetCommonData("ii3",1);
        CreateItem(ITEM_SCORE,GetX(),GetY()+22);
        loop(3) {
            CreateItem(ITEM_SCORE,GetX()+rand(-18,18),GetY()+rand(38,64));
        }
    }

    if (N17<100) {
        N17+=50;
    }
    if (N17>=100) {
        VanishEnemy;
    }
    if (count%3<=0) {
        Explosion01(GetX+rand(-10,10),GetY+rand(-10,10),24,0.1,20);
    }
}

@Initialize
{
    SetLife(5424);
    if (GetPlayerType()==REIMU_A) {
        SetLife(5475);
    }SetDamageRate(150,44);
    LoadUserShotData(GetCurrentScriptDirectory~".\shot_All.txt");
    SetScore(15000);
    SetAngle(90);
}


@MainLoop
{
    if (count%4==0) {
        life=GetLife();
    }if (ten==1&&count%4==1) {
        ten=0;
    }
    if (count%4==3&&GetLife()<life&&GetLife()>200) {
        ten=1;
    }

    if (GetArgument==1) {
        if (count>360) {
            VanishEnemy;
        }
        SetSpeed(3.2-0.02*count);
        if (GetCommonDataDefault("miss2",0)!=2) {
            if (count%4==0&&count>80&&count<240&&count%50<30) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot00.wav");
                ascent(let t in 0..6) {
                    CreateShot01(GetX(),GetY(),3.8+0.4*(GetPlayerLife),90+60*t,RED04,18);
                }
            }
            if (count==70&&GetPlayerLife>=4) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot01.wav");
                ascent(let t in 0..6) {
                    CreateShot01(GetX(),GetY(),2.2+0.4*(GetPlayerLife),90+60*t,49,18);
                }
            }
        }
        if (GetCommonDataDefault("miss2",0)==2) {
            if (count%4==0&&count>80&&count<240&&count%50<30) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot00.wav");
                ascent(let t in 0..6) {
                    CreateShot01(GetX(),GetY(),5.2,90+60*t,RED04,18);
                }
            }
        }
        if (count>=0&&count<=50) {
            SetAngle(90);
            SetLife(5540);
        }
        if (count>=120) {
            SetDamageRate(200,14);
        }
        if (GetLife<5400) {
            dead;
        }
        else {
            SetCollisionA(GetX(),GetY(),15);
            SetCollisionB(GetX(),GetY(),8);
        }
    }

    else if (GetArgument==2) {
        if (count==0) {
            ran+=rand_int(25,50);
        }
        if (count>170) {
            VanishEnemy;
        }
        SetSpeed(7.1);
        //if(count%20==2&&count>=10&&count<=80&&GetPlayerLife>=6){PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
        //CreateShot01(GetX(),GetY(),0.8+0.3*GetPlayerLife,GetAngleToPlayer(),72,25);}
        if (count>=0&&count<=45) {
            SetAngle(0);
        }
        if (count>45&&count<=145) {
            mm++;
            SetAngle(mm*(180/50));
        }
        if (count>150) {
            SetAngle(0);
        }if (count>=24&&count<=58) {
            SetDamageRate(25,15);
        }else {
            SetDamageRate(188,100);
        }
        if (ran==0&&GetCommonDataDefault("miss",0)!=2) {
            ran+=rand_int(5,20);
            PlaySE(GetCurrentScriptDirectory~"\se\Shot00.wav");
            if (GetPlayerLife<=5) {
                ascent( let t in 0..2 ) {
                    CreateShot01(GetX(),GetY(),1+t,90,RED04,20);
                }
            }
            if (GetPlayerLife>5) {
                ascent( let t in 0..3 ) {
                    CreateShot01(GetX(),GetY(),1+t,90,RED04,20);
                    CreateShot01(GetX(),GetY(),1+t,270,RED04,20);
                }
            }
        }
        if (GetLife<5400) {
            dead;
        }
        else {
            SetCollisionA(GetX(),GetY(),15);
            SetCollisionB(GetX(),GetY(),8);
        }ran--;
    }

    else if (GetArgument==3) {
        if (count==0) {
            ran+=rand_int(25,50);
        }
        if (count>170) {
            VanishEnemy;
        }
        SetSpeed(7.1);
        if (count>=0&&count<=45) {
            SetAngle(180);
        }
        if (count>45&&count<=145) {
            mm--;
            SetAngle(180+mm*(180/50));
        }
        if (count>145) {
            SetAngle(180);
        }if (count>=24&&count<=58) {
            SetDamageRate(25,15);
        }else {
            SetDamageRate(188,100);
        }
        if (ran==0&&GetCommonDataDefault("miss",0)!=2) {
            ran+=rand_int(5,20);
            PlaySE(GetCurrentScriptDirectory~"\se\Shot00.wav");
            if (GetPlayerLife<=5) {
                ascent( let t in 0..2 ) {
                    CreateShot01(GetX(),GetY(),1+t,90,RED04,20);
                }
            }
            if (GetPlayerLife>5) {
                ascent( let t in 0..3 ) {
                    CreateShot01(GetX(),GetY(),1+t,90,RED04,20);
                    CreateShot01(GetX(),GetY(),1+t,270,RED04,20);
                }
            }
        }
        if (GetLife<5400) {
            dead;
        }
        else {
            SetCollisionA(GetX(),GetY(),15);
            SetCollisionB(GetX(),GetY(),8);
        }ran--;
    }

    else if (GetArgument==9) {
        if (count>360) {
            VanishEnemy;
        }
        SetSpeed(3.2-0.02*count);
        if (count%12==0&&count>90&&count<220&&GetPlayerLife<4) {
            PlaySE(GetCurrentScriptDirectory~"\se\Shot00.wav");
            CreateShot01(GetX(),GetY(),2.6+0.2*(GetPlayerLife),GetAngleToPlayer()+rand(-8,8),72,18);
        }
        if (count%4==0&&count>80&&count<240&&count%50<30&&GetPlayerLife>=4) {
            PlaySE(GetCurrentScriptDirectory~"\se\Shot00.wav");
            ascent(let t in 0..6) {
                CreateShot01(GetX(),GetY(),3.8+0.4*(GetPlayerLife),90+60*t,RED04,18);
            }
        }
        if (count==70&&GetPlayerLife>=4) {
            PlaySE(GetCurrentScriptDirectory~"\se\Shot01.wav");
            ascent(let t in 0..6) {
                CreateShot01(GetX(),GetY(),2.2+0.4*(GetPlayerLife),90+60*t,49,18);
            }
        }
        if (count>=0&&count<=60) {
            SetAngle(90);
            SetLife(5410);
        }
        if (GetLife<5400) {
            dead;
        }
        else {
            SetCollisionA(GetX(),GetY(),15);
            SetCollisionB(GetX(),GetY(),8);
        }
    }

    else if (GetArgument==10) {
        ascent( let t in 0..10 ) {
            if (GetAngleToPlayer>(t*36)-18&&GetAngleToPlayer<(t*36)+18) {
                sAng=(t*36);    //΍
            }
        }
        if (count>360) {
            VanishEnemy;
        }
        SetSpeed(1.2+0.006*count);
        if (GetPlayerLife<4) {
            if (count%19==0&&count>40&&count<106&&GetY+27<GetPlayerY) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                SetShotDirectionType(PLAYER);
                ascent(let t in 0..6) {
                    CreateShot01(GetX(),GetY(),1.8,90+60*t,71,18);
                }
                SetShotDirectionType(ABSOLUTE);
            }
        }
        if (GetPlayerLife>5) {
            if (count%25==0&&count>40&&count<146&&GetY+24<GetPlayerY) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                CreateShot02(GetX()+8*cos(sAng)+16*cos(sAng+90),GetY()+8*sin(sAng)+16*sin(sAng+90),3.3,sAng,0,4.53,72,4);
                CreateShot02(GetX()+8*cos(sAng)+16*cos(sAng-90),GetY()+8*sin(sAng)+16*sin(sAng-90),3.3,sAng,0,4.53,72,4);
            }
        }
        if (GetPlayerLife<=5&&GetPlayerLife>=4) {
            if (count%45==0&&count>40&&count<146&&GetY+24<GetPlayerY) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                CreateShot02(GetX()+8*cos(sAng)+16*cos(sAng+90),GetY()+8*sin(sAng)+16*sin(sAng+90),2.5,sAng,0,4.53,72,8);
                CreateShot02(GetX()+8*cos(sAng)+16*cos(sAng-90),GetY()+8*sin(sAng)+16*sin(sAng-90),2.5,sAng,0,4.53,72,8);
            }
        }
        if (count>=0&&count<=70) {
            SetAngle(GetAngleToPlayer());
            SetLife(5420);
        }
        if (GetLife<5400) {
            dead;
        }
        else {
            SetCollisionA(GetX(),GetY(),22);
            SetCollisionB(GetX(),GetY(),4);
        }
    }

    else if (GetArgument==11) {
        if (count>310) {
            VanishEnemy;
        }
        SetSpeed(4.2+(GetPlayerY)*0.007-0.05*count);
        if (count>60) {
            SetSpeed(0.8+0.044*count+2*(GetPlayerLife>=6));
        }

        if (GetCommonDataDefault("miss2",0)==2) {
            if (count>=0&&count<36&&GetY-85<GetPlayerY&&N15!=2) {
                SetAngle(GetAngleToPlayer());
            }
            if (count%8==0&&GetY>GetCenterY+120) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                CreateShot01(GetX(),GetY(),2.2,GetAngleToPlayer(),72,2);
            }
            if (count%14==0&&count>18&&count<96&&GetY<GetCenterY+120) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                CreateShot01(GetX()+8*cos(GetAngle())+16*cos(GetAngle()+90),GetY()+8*sin(GetAngle())+16*sin(GetAngle()+90),1.4,GetAngle(),72,2);
                CreateShot01(GetX()+8*cos(GetAngle())+16*cos(GetAngle()-90),GetY()+8*sin(GetAngle())+16*sin(GetAngle()-90),1.4,GetAngle(),72,2);
            }
        }
        else {
            if (count%8==0&&GetY>GetCenterY+150&&GetCommonDataDefault("miss",0)!=1) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                CreateShot01(GetX(),GetY(),2.8,GetAngleToPlayer(),72,12);
            }
            if (count<80&&GetY+34<GetPlayerY&&GetEnemyShotCount<1100) {
                if (count%(22-2*(GetPlayerLife))==0&&GetPlayerLife<=5) {
                    PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                    CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()+90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()+90),2.1+0.2*(GetPlayerLife<4),GetAngleToPlayer()+3*rand_int(-1,1),72,2);
                    CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),2.1+0.2*(GetPlayerLife<4),GetAngleToPlayer()+3*rand_int(-1,1),72,2);
                }
                if (count%7==0&&GetPlayerLife>5) {
                    if (count<70) {
                        PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                        CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()+90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()+90),2.0+count*0.025,GetAngleToPlayer()+3*rand_int(1,1),72,6);
                        CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),2.0+count*0.025,GetAngleToPlayer()+3*rand_int(-1,1),72,6);
                    }
                }
            }
        }

        if (OnPlayerMissed==true) {
            N15=2;
        }
        if (count==0) {
            SetAngle(GetAngleToPlayer()+rand(-15,15));
        }
        if (count>=0&&count<96&&GetY+15<GetPlayerY&&N15!=2) {
            SetAngle(GetAngleToPlayer());
        }
        if (count>=0&&count<30-23*(GetPlayerLife>=6)) {
            SetLife(5415);
        }
        if (GetLife<5400) {
            dead;
        }
        else {
            SetCollisionA(GetX(),GetY(),20+14*(GetX-GetPlayerX<30));
            SetCollisionB(GetX(),GetY(),5);
        }
    }

    else if (GetArgument==12) {
        if (count>360) {
            VanishEnemy;
        }
        SetSpeed(1.7);
        if (GetPlayerType()==REIMU_A&&count==0) {
            SetLife(5580);
        }
        if (count%40==0&&count>110&&count<205&&GetPlayerLife<4) {
            PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
            if (count==120) {
                N15+=GetAngleToPlayer;
            }
            CreateShot02(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()+90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()+90),1.4,N15+185,0,1.83,72,8);
            CreateShot02(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),1.4,N15+175,0,1.83,72,8);
            CreateShot02(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()+90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()+90),2.1,N15+5,0,1.83,72,8);
            CreateShot02(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),2.1,N15-5,0,1.83,72,8);
            SetShotDirectionType(ABSOLUTE);
        }
        if (GetPlayerLife>5) {
            if (count%16==0&&count>110&&count<205) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()+90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()+90),3.6,GetAngleToPlayer()+rand(-4,12),72,12);
                CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),3.6,GetAngleToPlayer()+rand(-12,4),72,12);
            }
        }
        if (GetPlayerLife<=5&&GetPlayerLife>=4) {
            if (count%(19+32*(GetPlayerLife<4))==0&&count>110&&count<205) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()+90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()+90),2.6,GetAngleToPlayer()+rand(-4,12),72,12);
                CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),2.6,GetAngleToPlayer()+rand(-12,4),72,12);
            }
        }
        if (count>=0&&count<=40) {
            if (GetX()>GetCenterX()) {
                SetAngle(180);
            }else {
                SetAngle(0);
            }SetLife(5433);
        }
        if (GetLife<5400) {
            dead;
        }
        else {
            SetCollisionA(GetX(),GetY(),22);
            SetCollisionB(GetX(),GetY(),4);
        }
    }

    else if (GetArgument==13) {
        if (count>360) {
            VanishEnemy;
        }
        if (count==1) {
            N15=GetAngleToPlayer();
        }
        SetSpeed(1.2+0.005*count);
        if (count%5==0&&count>40&&count<126) {
            PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
            CreateShot01(GetX()+8*cos(N15)+16*cos(N15+90),GetY()+8*sin(N15)+16*sin(N15+90),4.2,N15,196,8);
            CreateShot01(GetX()+8*cos(N15)+16*cos(N15-90),GetY()+8*sin(N15)+16*sin(N15-90),4.2,N15,196,8);
        }
        if (count>=0&&count<=70) {
            SetAngle(GetAngleToPlayer());
            SetLife(5450);
        }
        if (GetLife<5400) {
            dead;
        }
        else {
            SetCollisionA(GetX(),GetY(),22);
            SetCollisionB(GetX(),GetY(),4);
        }
    }

    else if (GetArgument==14) {
        if (count>420) {
            VanishEnemy;
        }
        SetSpeed(1.5+0.003*count);
        if (count%17==0&&count>100&&count<226&&GetY+54<GetPlayerY) {
            PlaySE(GetCurrentScriptDirectory~"\se\Shot00.wav");
            CreateShot02(GetX()+16*cos(GetAngleToPlayer()),GetY()+16*sin(GetAngleToPlayer()),3,GetAngleToPlayer()+rand(-1,1),-0.1,2.53,196,18);
        }
        if (count>=0&&count<=70) {
            if (GetX()>GetCenterX()) {
                SetAngle(195);
            }else {
                SetAngle(345);
            }SetLife(5420);
        }
        if (GetLife<5400) {
            dead;
        }
        else {
            SetCollisionA(GetX(),GetY(),15);
        }
    }

    else if (GetArgument>=15) {
        ascent( let t in 0..12 ) {
            if (GetAngleToPlayer>(t*30)-15&&GetAngleToPlayer<(t*30)+15&&GetLife>5400) {
                Ang=(t*30);    //10^
            }
        }
        if (count<=10&&GetX<GetCenterX) {
            SetAngle(350);
        }
        if (count<=10&&GetX>GetCenterX) {
            SetAngle(190);
        }if (count>150) {
            VanishEnemy;
        }
        SetSpeed(2+count*0.05);
        if (GetLife<5400) {
            dead;
        }
        if (count<=30) {
            SetLife(5410);
            if (GetPlayerType()==REIMU_A) {
                SetLife(5425);
            }
        }
        else {
            SetCollisionA(GetX(),GetY(),19);
            SetCollisionB(GetX(),GetY(),5);
        }
        if (GetX-GetPlayerX>-20&&GetX-GetPlayerX<20) {
            SetDamageRate(200,60);
        }else {
            SetDamageRate(100,20);
        }
        if (GetArgument==15) {
            if (count%(20+16*(GetCommonDataDefault("Mode",0)<2))==rand_int(0,(19+16*(GetCommonDataDefault("Mode",0)<2)))&&count>40&&count<100&&GetCommonDataDefault("Mode",0)>=2) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                ascent(let t in 0..6-2*(GetCommonDataDefault("Mode",0)>2)) {
                    CreateShot01(GetX()+10*cos(GetAngleToPlayer()),GetY()+10*sin(GetAngleToPlayer()),(2.5+1.4*(GetCommonDataDefault("Mode",0)==2))+t*(0.2+0.3*(GetCommonDataDefault("Mode",0)==2)),GetAngleToPlayer()*(GetCommonDataDefault("Mode",0)==2)+Ang*(GetCommonDataDefault("Mode",0)>2),196*(GetCommonDataDefault("Mode",0)>2)+89*(GetCommonDataDefault("Mode",0)==2),5+t+(12+t*3)*(GetCommonDataDefault("Mode",0)<=2));
                }
            }
        }
        if (GetArgument==16) {
            if (count%4==2&&count>42&&count<120) {
                PlaySE(GetCurrentScriptDirectory~"\se\Shot02.wav");
                if (count%8==2) {
                    CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),2.4,270,196,12);
                    CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),2.4,90,196,12);
                    CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),2.4,270,196,15);
                    CreateShot01(GetX()+8*cos(GetAngleToPlayer())+16*cos(GetAngleToPlayer()-90),GetY()+8*sin(GetAngleToPlayer())+16*sin(GetAngleToPlayer()-90),2.4,90,196,15);
                }
            }
        }
    }

    count++;

}

@Finalize
{
}

@DrawLoop
{
    SetTexture(GetCurrentScriptDirectory~"\img\familiar.png");
    if (count<=20) {
        SetColor(0,0,0);
    }
    if (count>=20&&count<41) {
        SetColor((count-20)*10,(count-20)*10,(count-20)*10);
    }
    if (count>=41) {
        SetColor(211,211,211);
    }
    if (count>=50) {
        SetColor(211-(count-50)*12,211-(count-50)*12,211-(count-50)*12);
        if (211-(count-50)*12<=0) {
            SetColor(0,0,0);
        }
    }
    SetGraphicAngle(0,0,0);
    SetGraphicScale(1,1);
    SetAlpha(255);
    SetRenderState(ADD);
    SetGraphicRect(144,48,192,96);
    if (GetArgument==0||GetArgument>=15) {
        SetGraphicRect(48,48,96,96);
    }
    DrawGraphic(GetX(),GetY());

    SetTexture(GetCurrentScriptDirectory~"\img\dot-kaze-ti.png");
    SetAlpha(255);
    SetGraphicRect(64,0,128,64);
    if (GetArgument>=10&&GetArgument<=13) {
        SetGraphicRect(192,0,256,64);
    }
    if (GetCommonDataDefault("miss",0)==2) {
        SetGraphicRect(64,64,128,128);
    }
    SetRenderState(ALPHA);
    SetColor(225+count%4*30,225+count%4*30,225+count%4*30);
    if (ten==1) {
        SetColor(60,60,140);
    }
    SetGraphicScale(0.95,0.95);
    SetGraphicAngle(0,0,-count*5);
    DrawGraphic(GetX(),GetY());

    SetGraphicRect(0,0,64,64);
    if (GetArgument>=10&&GetArgument<=13) {
        SetGraphicRect(128,0,192,64);
    }
    if (GetCommonDataDefault("miss",0)==2) {
        SetGraphicRect(0,64,64,128);
    }
    SetColor(255,255,255);
    SetGraphicScale(0.8,0.8);
    SetGraphicAngle(0,0,count*4);
    if (ten==1) {
        SetColor(60,60,140);
    }
    DrawGraphic(GetX(),GetY());

}
}
