Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #“Ś•ű’e–‹•—[Single]
- #ScriptVersion[3]
- #Title["10"]
- #Text["10"]
- #Background["script/default_system/Default_Background_IceMountain.txt"]
- #include"script/default_system/Default_ShotConst.txt"
- let objEnemy;
- let objPlayer;
- let frame = 0;
- @Event{
- alternative(GetEventType())
- case(EV_REQUEST_LIFE){
- SetScriptResult(1500);
- }
- }
- @Initialize{
- objPlayer = GetPlayerObjectID();
- objEnemy = ObjEnemy_Create(OBJ_ENEMY_BOSS);
- ObjEnemy_Regist(objEnemy);
- let imgExRumia = GetCurrentScriptDirectory ~ "ExRumia.png";
- ObjPrim_SetTexture(objEnemy, imgExRumia);
- ObjSprite2D_SetSourceRect(objEnemy, 64, 1, 127, 64);
- ObjSprite2D_SetDestCenter(objEnemy);
- let cx = GetStgFrameWidth() / 2;
- ObjMove_SetDestAtFrame(objEnemy, cx, 120, 60);
- let difficult=2;
- PatternX();
- PatternY();
- Shield();
- }
- @MainLoop{
- let ex = ObjMove_GetX(objEnemy);
- let ey = ObjMove_GetY(objEnemy);
- ObjEnemy_SetIntersectionCircleToShot(objEnemy, ex, ey, 32);
- ObjEnemy_SetIntersectionCircleToPlayer(objEnemy, ex, ey, 24);
- frame++;
- if(ObjEnemy_GetInfo(objEnemy, INFO_LIFE) <= 0){
- Obj_Delete(objEnemy);
- CloseScript(GetOwnScriptID());
- return;
- }
- yield;
- }
- function wait(n){
- loop(n){yield;}
- }
- task PatternX(){
- wait(60);
- loop{
- let random1=rand(70, 110);
- let random2=rand(81, 88);
- let random3=rand(80, 100);
- let random4=rand(85, 95);
- let wallx=0;
- while(wallx<=GetStgFrameWidth){
- let obj=CreateShotA1(wallx, 0, 2, random1, random2, 15);
- ObjMove_AddPatternA2(obj, 60, NO_CHANGE, NO_CHANGE, 0.02, 0, 5);
- ObjMove_AddPatternA2(obj, 120, NO_CHANGE, random3, 0.02, 0, 5);
- ObjMove_AddPatternA2(obj, 180, NO_CHANGE, random4, 0.02, 0, 5);
- wallx+=GetStgFrameWidth/Meiling;
- if(difficult==1){Meiling==2;}
- if(difficult==2){Meiling==4;}
- if(difficult==3){Meiling==6;}
- if(difficult==4){Meiling==9;}
- }
- wait(10);
- }
- }
- task PatternY(){
- wait(60);
- loop{
- let ex = ObjMove_GetX(objEnemy);
- let ey = ObjMove_GetY(objEnemy);
- let random=rand(-30, +30);
- let angle=0+random;
- while(angle<=360+random){
- CreateShotA1(ex, ey, 2, angle, rand(9, 16), 15);
- angle+=60
- }
- wait(Patchy);
- if(difficult==1){Patchy==60;}
- if(difficult==2){Patchy==30;}
- if(difficult==3){Patchy==25;}
- if(difficult==4){Patchy==20;}
- }
- }
- task Shield(){
- ObjEnemy_SetDamageRate(objEnemy, 0, 0);
- wait(60);
- ObjEnemy_SetDamageRate(objEnemy, 100, 100);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement