Guest User

Untitled

a guest
Feb 21st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.17 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #ScriptVersion[2]
  3. #Title[Miniboss Rush - Daiyousei]
  4. #Player[REIMU,MARISA]
  5.  
  6. script_enemy_main {
  7.     #include_function ".\lib\libboss.dnh"
  8.     life = 3000;
  9.     dscale = [150,20];
  10.  
  11.     time = 60;
  12.  
  13.     let sprite = GetCurrentScriptDirectory()~"/img/daiyousei.png";
  14.  
  15.     sub init(){
  16.         LoadGraphic(sprite);
  17.     }
  18.     task main(){
  19.         Concentration01(120);
  20.         loop(120){yield;}
  21.         let i = 0;
  22.         loop{
  23.             loop(60){
  24.                 CreateShot01(GetX(),GetY(),2  ,i,PURPLE11,0);
  25.                 CreateShot01(GetX(),GetY(),2.5,i,PURPLE11,0);
  26.                 CreateShot01(GetX(),GetY(),3  ,i,PURPLE11,0);
  27.                 CreateShot01(GetX(),GetY(),3.5,i,PURPLE11,0);
  28.                 CreateShot01(GetX(),GetY(),4  ,i,PURPLE11,0);
  29.                 CreateShot01(GetX(),GetY(),2  ,i+180,BLUE12,0);
  30.                 CreateShot01(GetX(),GetY(),2.5,i+180,BLUE12,0);
  31.                 CreateShot01(GetX(),GetY(),3  ,i+180,BLUE12,0);
  32.                 CreateShot01(GetX(),GetY(),3.5,i+180,BLUE12,0);
  33.                 CreateShot01(GetX(),GetY(),4  ,i+180,BLUE12,0);
  34.                 i+=7.2;
  35.                 yield;
  36.             }
  37.             SetX(GetCenterX()+rand(-100,100));SetY(rand(120,200));
  38.             Concentration01(30);
  39.             loop(30){yield;}
  40.         }
  41.     }
  42.    
  43.  
  44.     @DrawLoop {
  45.         SetGraphicRect(0,0,124,124);
  46.         SetTexture(sprite);
  47.         DrawGraphic(GetX(),GetY());
  48.     }
  49. }
Add Comment
Please, Sign In to add comment