#e
#Title[͂Ēʏ1 Hard]
#Text[]
#ScriptVersion[2]
#BackGround[]
#BGM[]
script_enemy_main {
let a=0;
let b=0;
  @Initialize {       
        SetX(52);
        SetY(rand(26,180));
        SetLife(500);
        LoadGraphic(imgBIGCIRCLE);
        LoadUserShotData(GetCurrentScriptDirectory~"shot_All.txt");
        boss_magic_circle;
        SetInvincibility(240);
        Tmain;
    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 24);
        SetCollisionB(GetX, GetY, 24);
        
        yield;
}
    @DrawLoop {
    }
    @Finalize {
    
    }
task Tmove1(time){
SetMovePosition02(396,rand(26,180),time);
}
task Tmove2(time){
SetMovePosition02(52,rand(26,180),time);
}
task Tmain{
yield;
Attack;
}
task Attack{
loop{
Concentration01(120);
PlaySE(powerSE);
wait(120);
Tmove1(30);
TShot;
wait(30);
Concentration01(120);
PlaySE(powerSE);
wait(120);
Tmove2(30);
TShot;
wait(30);
}
}

task TShot{
loop(10){
PlaySE(shotSE);
hatateshot(GetX,GetY,0,90,45,BLUE21,0,75);
hatateshot(GetX,GetY,0,90,135,RED21,0,75);
hatateshot(GetX,GetY,0,90,225,BLUE21,0,75);
hatateshot(GetX,GetY,0,90,315,RED21,0,75);
hatateshot(GetX,GetY,0,45,0,RED21,0,75);
hatateshot(GetX,GetY,0,45,90,BLUE21,0,75);
hatateshot(GetX,GetY,0,45,180,RED21,0,75);
hatateshot(GetX,GetY,0,45,270,BLUE21,0,75);
hatateshot(GetX,GetY,0,135,90,RED21,0,75);
hatateshot(GetX,GetY,0,135,180,BLUE21,0,75);
hatateshot(GetX,GetY,0,135,270,RED21,0,75);
hatateshot(GetX,GetY,0,135,0,BLUE21,0,75);
hatateshot(GetX,GetY,0,270,45,BLUE21,0,75);
hatateshot(GetX,GetY,0,270,135,RED21,0,75);
hatateshot(GetX,GetY,0,270,225,BLUE21,0,75);
hatateshot(GetX,GetY,0,270,315,RED21,0,75);
hatateshot(GetX,GetY,0,225,0,RED21,0,75);
hatateshot(GetX,GetY,0,225,90,BLUE21,0,75);
hatateshot(GetX,GetY,0,225,180,RED21,0,75);
hatateshot(GetX,GetY,0,225,270,BLUE21,0,75);
hatateshot(GetX,GetY,0,315,90,RED21,0,75);
hatateshot(GetX,GetY,0,315,180,BLUE21,0,75);
hatateshot(GetX,GetY,0,315,270,RED21,0,75);
hatateshot(GetX,GetY,0,315,0,BLUE21,0,75);

wait(3);
b+=5;
}
b=0;
}
#include_function ".\functions.txt"
#include_function ".\ϐW.txt"
}