#東方弾幕風
#Title[西行寺幽々子 死符「ギャストリドリーム」]
#Text[]
#ScriptVersion[2]

script_enemy_main {
    let name        = "死符「ギャストリドリーム」";
    let imgBoss   = "script\img\dot_yuyuko.png";
    let frame     =  0;
    let angleBase = 90;
    let bgm       = "script\bgm\mkei_yuuga02.mp3";
    let shot1se   = "script\se\Shot00.wav";
    let shot2se   = "script\se\Shot02.wav";
    let laserse   = "script\se\Laser.wav";
    PlayMusic(bgm);
    @Initialize {
        CutIn(YOUMU, name, "script\img\Yuyuko.png", 0, 0, 190, 320);
        SetX(GetCenterX);
        SetY(GetClipMinY + 120);
        SetLife(4000);
	SetTimer(66);
        SetScore(4000000);

        LoadGraphic(imgBoss);
        SetTexture(imgBoss);
        SetGraphicRect(0, 0, 128, 128);
    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 24);
        SetCollisionB(GetX, GetY, 24);

        frame++;
        if(frame == 60) { 
		loop(17){
		RoundShot02(GetX,GetY, -1, 0.02, 4, rand(720,0), 4, YELLOW22, 0);PlaySE(shot2se);
		RoundShot02(GetX,GetY, -1, 0.02, 4, rand(720,0), 4, PURPLE22, 20);PlaySE(shot2se);
      	  	frame = 0;
		}	
	}
    }

    @DrawLoop {
        DrawGraphic(GetX, GetY);
    }

    @Finalize {
        DeleteGraphic(imgBoss);
    }

#include_function "script\lily\function_bullet.txt"

}