#東方弾幕風[Stage] #Title[ステージ] #Text[] #Image[] #BackGround[Default] #ScriptVersion[2] script_stage_main{ let CenX = GetCenterX; let CenY = GetCenterY; let imgEnemy = "script\img\ExRumia.png"; @Initialize{LoadGraphic(imgEnemy);StageTask;} @MainLoop{yield;} @Finalize{DeleteGraphic(imgEnemy);} task StageTask{ wait(60); CreateEnemyFromScript("Enemy",CenX,CenY,1,90,0); WaitForZeroEnemy(); wait(240); CreateEnemyFromScript("Enemy",CenX,CenY,1,90,0); WaitForZeroEnemy(); wait(60); ClearStage();} function wait(w) {loop(w) { yield; }} function WaitForZeroEnemy(){while(GetEnemyNum() != 0){yield;}}} script_enemy Enemy { let imgBoss = "script\img\ExRumia.png"; SetTexture(imgBoss); SetGraphicRect( 0, 0, 10, 10); @Initialize{ SetScore(10); SetLife(10); main; } @MainLoop{SetCollisionA(GetX, GetY, 16);SetCollisionB(GetX, GetY, 8);yield;} @DrawLoop{DrawGraphic(GetX, GetY);} @Finalize{DeleteGraphic(imgBoss);} task main{ let angle = 90; loop{ CreateShot01(GetX,GetY,1,angle,RED01,10); wait(10); } } function wait(w) {loop(w) { yield; }} }