#東方弾幕風 #Title[円符「全方向弾」] #Text[10度間隔で広がる方向弾の例です] #Player[FREE] #ScriptVersion[2] /*----------------------script_enemy_mainとInitialize-----------------------------------------*/ script_enemy_main { let imgBoss = "script\img\ExRumia.png"; let frame = 0; let angle = 0; @Initialize { CutIn(YOUMU, "円符「全方向弾」", "", 0, 0, 0, 0); SetX(GetCenterX); SetY(GetClipMinY - 120); SetTimer(60); SetLife(4000); SetDamageRate(100,100); SetScore(10000000); LoadGraphic(imgBoss); SetTexture(imgBoss); SetGraphicRect(0, 0, 63, 63); SetMovePosition02(GetCenterX,GetClipMinY+170,60); } /*--------------------------MainLoop----------------------------------------------------------*/ @MainLoop { SetCollisionA(GetX, GetY, 48); SetCollisionB(GetX, GetY, 24); frame++; if(frame%60==0){ loop(36){ //angleを10度ずつ増やして36発発射します CreateShot01(GetX,GetY,3,angle,RED01,30); angle+=10; } angle=0; //angleを0に戻します(無くてもよい) } } /*----------------------DrawLoopとFinalize----------------------------------------------------*/ @DrawLoop { DrawGraphic(GetX, GetY); } @Finalize { DeleteGraphic(imgBoss); } }