#東方弾幕風 #Title[遊歩『落ち葉舞う散歩道』] #Text[カルマ:遊歩『落ち葉舞う散歩道』] #Image[] #BackGround[Default] #Player[FREE] #ScriptVersion[2] script_enemy_main { let count; let cx; let step=0; let imgExRumia=GetCurrentScriptDirectory~"img\ExRumia.png"; @Initialize { count=0; cx=GetCenterX(); SetScore(25000); SetLife(450); SetDamageRate(10,10); SetTimer(50); LoadGraphic(imgExRumia); SetGraphicRect(64,1,127,64); SetInvincibility(30); SetColor(255,64,255); SetMovePosition02(cx,0,10); CutIn(KOUMA,"遊歩『落ち葉舞う散歩道』",0,0,0,0,0); } @MainLoop { if(count==60) { let angle=0; while(angle<360) { let shot=0; CreateShotA(shot,GetX(),GetY(),30); SetShotDirectionType(ABSOLUTE); SetShotDataA(shot,0,5,angle,0,0.15,1,GREEN11); SetShotDirectionType(SEQUENCE); SetShotDataA(shot,60,3,180,0,0,3,GREEN11); let i=60; while(i<360) { let shotSpeed=rand(0.5,1.5); let ta=1; CreateShotA(ta,0,0,60); SetShotDirectionType(SEQUENCE); SetShotDataA(ta,0,shotSpeed,rand(0,360),0,0,0,GREEN04); AddShot(i,shot,ta,0); i+=30; } FireShot(shot); angle+=15; } } if(count==90) { let angle=0; while(angle<360) { let shot=0; CreateShotA(shot,GetX(),GetY(),30); SetShotDirectionType(ABSOLUTE); SetShotDataA(shot,0,5,angle,0,0.15,1,YELLOW11); SetShotDirectionType(SEQUENCE); SetShotDataA(shot,60,3,180,0,0,3,YELLOW11); let i=60; while(i<360) { let shotSpeed=rand(0.5,1.5); let ta=1; CreateShotA(ta,0,0,60); SetShotDirectionType(SEQUENCE); SetShotDataA(ta,0,shotSpeed,rand(-110,70),0,0,0,YELLOW04); AddShot(i,shot,ta,0); i+=30; } FireShot(shot); angle+=15; } } if(count==120) { let angle=0; while(angle<360) { let shot=0; CreateShotA(shot,GetX(),GetY(),30); SetShotDirectionType(ABSOLUTE); SetShotDataA(shot,0,5,angle,0,0.15,1,RED11); SetShotDirectionType(SEQUENCE); SetShotDataA(shot,60,3,180,0,0,3,RED11); let i=60; while(i<360) { let shotSpeed=rand(0.5,1.5); let ta=1; CreateShotA(ta,0,0,60); SetShotDirectionType(SEQUENCE); SetShotDataA(ta,0,shotSpeed,rand(0,360),0,0,0,RED04); AddShot(i,shot,ta,0); i+=30; } FireShot(shot); angle+=15; } } if(count==10) { SetMovePosition02(cx,450,230); } if(count==240) { SetMovePosition02(cx,0,1); count=9; } SetCollisionA(GetX(),GetY(),32); SetCollisionB(GetX(),GetY(),24); count++; } @DrawLoop { SetTexture("script\img\ExRumia.png"); DrawGraphic(GetX(),GetY()); } @Finalize { DeleteGraphic(imgExRumia); loop(8) { CreateItem(ITEM_SCORE,cx+rand(-100,100),rand(20,100)); } CreateItem(ITEM_BOMB,cx+rand(-100,100),rand(20,100)); } }