#TouhouDanmakufu[Single]
#ScriptVersion[3]

#include "./functions.txt"

timer = 60;
life = 12000;

@Initialize
{
	objEnemy = ObjEnemy_Create(OBJ_ENEMY_BOSS);
	ObjEnemy_Regist(objEnemy);

	TEnemyWork;
	ObjEnemy_Render(objEnemy);
}

task TEnemyWork
{
	ObjMove_SetDestAtWeight(objEnemy,GetStgFrameWidth*0.5,GetStgFrameHeight*0.5-100,20,5);
	loop(90){yield;}
	TLife(0,20,32,0,0,false);
	CreateScreenShake(150,30,false);
	loop(155){yield;}
	TBody;
	loop(180){yield;}
	ObjEnemy_SetLife(objEnemy,0);
	task TBody
		{
		NotifyEventAll(668,true);	
		}
	
}            