script_enemy_main {
    task Tmain{
        SetDamageRate(30, 30);
        CSpell(YOUMU, "夏花「大輪　−貴方を見つめる−」", 90, 500000, cutin_png, 0,0,506,748);
        wait(50);
        let interval = 51; //ランク変更点
        let tilt = 0;
        let hole = 45;
        loop{
            let frame = 60;
            SetMovePosition02(GetCenterX, GetCenterY, frame);
            Tshot04(RED21);
            SetAction(ACT_MOVE, frame);
            wait(frame);
            
            Tcicle;
            Tshot01(interval, 0 + tilt, ORANGE11);
            Tshot01(interval, 90+ tilt, GREEN11);
            Tshot02(hole, RED03);
            Tlaser01(1, ORANGE12);
            Tlaser01(-1, ORANGE12);
            
            SetAction(ACT_TURN, TIME_TURN);
            wait(50);
            SetMovePosition02(GetCenterX + rand(-90,90), GetClipMinY + 80, frame);
            wait(frame);
            //Tshot03(YELLOW31);
            
            SetDamageRate(70, 70);
            loop{
                move(50); wait(80);
                if(!cicle && OnNormal){break;}
            }
            SetDamageRate(30, 30);
        	wait(40);
            tilt += 45;
            hole = rand(0,90);
        }
    }
    
    /*------------------実関数--------------------------*/
    @Initialize { //初期設定
        //ロード----------------------------------
        Lgboss(boss_png); //ボスグラ読み込み
        InitializeAction(); //ボスグラアニメーション設定
        //セット----------------------------------
        SetLife(3800); //ライフ
    	SetDamageRate(0, 0);
        //マイクロスレッド実行---------------------
		Tde_move(GetCenterX, GetClipMinY + 120);
    }
    
    #include_function ".\yuka_sp02_base.txt"
}
