#東方弾幕風 #Title[ネウフ・デ・ソード] #Text[] #ScriptVersion[2] script_enemy_main { let img = "script\img\ExRumia.png"; let name = "拒絶「ネウフ・デ・ソード」"; @Initialize { CutIn(KOUMA, name, "", 0, 0, 0, 0); SetX(GetCenterX); SetY(GetCenterY - 120); SetLife(5000); SetScore(1000000); SetTimer(99); LoadGraphic(img); SetTexture(img); SetGraphicRect(64, 0, 128, 64); TMain; } @MainLoop { SetCollisionA(GetX, GetY, 24); SetCollisionB(GetX, GetY, 24); yield; } @DrawLoop { DrawGraphic(GetX, GetY); } @Finalize { DeleteGraphic(img); } //以下タスク(マイクロスレッド) task TMain { yield; TMove; TShot; TShot2; TShot3; TShot4; TShot5; TShot6; TShot7; TShot8; //何個足してもおk } task TMove { yield; } task TShot { let angle = 0; yield; loop { loop(1) { yield; } CreateShot01(GetX - 30, GetY - 60, 7, angle, RED32, 1); angle += 6; } } task TShot2 { let angle = 0; yield; loop { loop(1) { yield; } CreateShot01(GetX - 30, GetY - 60, 7, angle, RED32, 1); angle -= 6; } } task TShot3 { let angle = 0; yield; loop { loop(1) { yield; } CreateShot01(GetX + 30, GetY - 60, 7, angle -180, BLUE32, 1); angle += 6; } } task TShot4 { let angle = 0; yield; loop { loop(1) { yield; } CreateShot01(GetX + 30, GetY - 60, 7, angle -180, BLUE32, 1); angle -= 6; } } task TShot5 { let angle = 0; yield; loop { loop(2) { yield; } CreateShot01(GetX - 60, GetY, 4, angle +90, YELLOW31, 0); angle += 10; } } task TShot6 { let angle = 0; yield; loop { loop(2) { yield; } CreateShot01(GetX + 60, GetY, 4, angle +90, GREEN31, 0); angle -= 10; } } task TShot7 { let angle = 0; yield; loop { loop(1) { yield; } CreateShot01(GetX, GetY + 40, 5, angle, WHITE32, 2); CreateShot01(GetX, GetY + 40, 5, angle +180, WHITE32, 2); angle += 6; } } task TShot8 { let angle = 0; yield; loop { loop(1) { yield; } CreateShot01(GetX, GetY + 40, 5, angle +90, WHITE32, 2); CreateShot01(GetX, GetY + 40, 5, angle +270, WHITE32, 2); angle -= 6; } } function wait(w) { loop(w) { yield; } } }