Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #“Œ•û’e–‹•—[Single]
- #ScriptVersion[2]
- ////////////////////////////////////////////////////////////////////////////////////////////////////
- script_enemy_main{
- #include_function ".\function_cutin.txt"
- /**********Universal Variables*********/
- let CSD = GetCurrentScriptDirectory;
- let CustomShot = "\lib\Supershot\supershot.txt";
- /**********Drawing Variables**********/
- let ImgBoss = CSD ~ "\Pic\Jack.png";
- let Cut = CSD ~ "\Pic\Jack_Cut.png";
- let Layer2 = CSD ~ "\Pic\JackBG1.png";
- let BG = CSD ~ "\Pic\JackBG2.png";
- /**********Sound Variables************/
- let Shot = CSD ~ "\se\Shot2.wav";
- let Time1 = CSD ~ "\se\Time1.wav";
- let Time2 = CSD ~ "\se\Time2.wav";
- let CardGet = CSD ~ "\se\Capture.wav";
- /**********Effect Variables*************/
- let bgscroll = 640;
- let fcount = 0;
- ////////////////////////////////////////////////////////////////////////////////////////////////////
- @Initialize{
- /**********Declaring Initial***********/
- SetLife(2000);
- SetDamageRate(50,100);
- SetInvincibility(120);
- SetTimer(60);
- SetScore(150000);
- SetMovePosition01(GetCenterX,GetCenterY,3);
- SetEnemyMarker(true);
- /**********Loading Information*********/
- LoadGraphic(ImgBoss);
- LoadGraphic(Cut);
- LoadGraphic(Layer2);
- LoadGraphic(BG);
- LoadUserShotData(CustomShot);
- cutin("BYAKUREN","Chaos ''Total Anihilation''",Cut,0,0,512,512);
- mainTask;
- }
- ////////////////////////////////////////////////////////////////////////////////////////////////////
- @MainLoop{
- /****************Boss Interaction****************/
- SetCollisionA(GetX,GetY,32);
- SetCollisionB(GetX,GetY,24);
- yield;
- /****************Frame Count Initialization*************/
- fcount++;
- bgscroll++;
- /****************Bullets Initialization & Control***************/
- /****************Effects Initialization******************/
- if(fcount == 3000){PlaySE(Time1);}
- if(fcount == 3060){PlaySE(Time1);}
- if(fcount == 3120){PlaySE(Time1);}
- if(fcount == 3180){PlaySE(Time1);}
- if(fcount == 3240){PlaySE(Time1);}
- if(fcount == 3300){PlaySE(Time1);}
- if(fcount == 3360){PlaySE(Time2);}
- if(fcount == 3420){PlaySE(Time2);}
- if(fcount == 3480){PlaySE(Time2);}
- if(fcount == 3540){PlaySE(Time2);}
- }
- ////////////////////////////////////////////////////////////////////////////////////////////////////
- @DrawLoop{
- /**************Boss Drawing*****************/
- SetFontColor(255,0,0,200,0,0);
- SetTexture(ImgBoss);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- SetGraphicRect(0,0,88,114);
- DrawGraphic(GetEnemyX,GetEnemyY);
- DrawText("Jack Kitetsu",40,35,12,255);
- }
- ////////////////////////////////////////////////////////////////////////////////////////////////////
- @BackGround{
- /**************BG Drawing (Moving Background)*****************/
- SetTexture(BG);
- SetRenderState(ALPHA);
- SetAlpha(155);
- SetGraphicRect(0,0,bgscroll,480);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetCenterX,GetCenterY);
- /**************BG Drawing (Jack Face)*****************/
- SetTexture(Layer2);
- SetRenderState(ALPHA);
- SetAlpha(55);
- SetGraphicRect(0,0,395,395);
- SetGraphicScale(1,1.3);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetCenterX-70,GetCenterY);
- }
- ////////////////////////////////////////////////////////////////////////////////////////////////////
- @Finalize{
- loop(18) {
- let x = GetX + rand(-64, 64);
- let y = GetY + rand(-64, 64);
- CreateItem(ITEM_SCORE, x, y);
- }
- if(GotSpellCardBonus == true){PlaySE(CardGet);}
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////
- task mainTask{
- yield;
- fire;
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////
- task fire{
- let dir = 0;
- wait(120);
- loop{
- PlaySE(Shot);
- CreateShotA(1,GetEnemyX,GetEnemyY,10);
- CreateShotA(2,GetEnemyX,GetEnemyY,10);
- CreateShotA(3,GetEnemyX,GetEnemyY,10);
- CreateShotA(4,GetEnemyX,GetEnemyY,10);
- SetShotDataA(1,0,1,dir,0,0,1,24);
- SetShotDataA(2,0,1,dir+90,0,0,1,25);
- SetShotDataA(3,0,1,dir+180,0,0,1,26);
- SetShotDataA(4,0,1,dir+270,0,0,1,27);
- SetShotDataA(1,60,0,dir,0,0,1,24);
- SetShotDataA(2,60,0,dir+90,0,0,1,25);
- SetShotDataA(3,60,0,dir+180,0,0,1,26);
- SetShotDataA(4,60,0,dir+270,0,0,1,27);
- SetShotDataA(1,210,1,dir,0,0,1,24);
- SetShotDataA(2,210,1,dir+90,0,0,1,25);
- SetShotDataA(3,210,1,dir+180,0,0,1,26);
- SetShotDataA(4,210,1,dir+270,0,0,1,27);
- SetShotDataA(1,270,0,dir,0,0,1,24);
- SetShotDataA(2,270,0,dir+90,0,0,1,25);
- SetShotDataA(3,270,0,dir+180,0,0,1,26);
- SetShotDataA(4,270,0,dir+270,0,0,1,27);
- SetShotDataA(1,440,1.5,rand(0,359),0,0,1,9);
- SetShotDataA(2,440,1.5,rand(0,359),0,0,1,10);
- SetShotDataA(3,440,1.5,rand(0,359),0,0,1,11);
- SetShotDataA(4,440,1.5,rand(0,359),0,0,1,12);
- FireShot(1);
- FireShot(2);
- FireShot(3);
- FireShot(4);
- wait(1);
- yield;
- dir++;
- }
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // wait function
- function wait(w){
- loop(w){yield;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment