Guest User

Untitled

a guest
Feb 21st, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.26 KB | None | 0 0
  1. #TouhouDanmakufu
  2.  
  3. #ScriptVersion[2]
  4.  
  5. #Title[Miniboss Rush - Daiyousei]
  6.  
  7. #Player[REIMU,MARISA]
  8.  
  9.  
  10.  
  11. script_enemy_main {
  12.  
  13.     #include_function ".\lib\libboss.dnh"
  14.  
  15.     life = 3000;
  16.  
  17.     dscale = [150,20];
  18.  
  19.  
  20.  
  21.     time = 60;
  22.  
  23.  
  24.  
  25.     let sprite = GetCurrentScriptDirectory()~"/img/daiyousei.png";
  26.  
  27.  
  28.  
  29.     sub init(){
  30.  
  31.         LoadGraphic(sprite);
  32.  
  33.     }
  34.  
  35.     task main(){
  36.  
  37.         Concentration01(120);
  38.  
  39.         loop(120){yield;}
  40.  
  41.         let i = 0;
  42.  
  43.         loop{
  44.  
  45.             loop(60){
  46.  
  47.                 CreateShot01(GetX(),GetY(),2  ,i,PURPLE11,0);
  48.  
  49.                 CreateShot01(GetX(),GetY(),2.5,i,PURPLE11,0);
  50.  
  51.                 CreateShot01(GetX(),GetY(),3  ,i,PURPLE11,0);
  52.  
  53.                 CreateShot01(GetX(),GetY(),3.5,i,PURPLE11,0);
  54.  
  55.                 CreateShot01(GetX(),GetY(),4  ,i,PURPLE11,0);
  56.  
  57.                 CreateShot01(GetX(),GetY(),2  ,i+180,BLUE12,0);
  58.  
  59.                 CreateShot01(GetX(),GetY(),2.5,i+180,BLUE12,0);
  60.  
  61.                 CreateShot01(GetX(),GetY(),3  ,i+180,BLUE12,0);
  62.  
  63.                 CreateShot01(GetX(),GetY(),3.5,i+180,BLUE12,0);
  64.  
  65.                 CreateShot01(GetX(),GetY(),4  ,i+180,BLUE12,0);
  66.  
  67.                 i+=7.2;
  68.  
  69.                 yield;
  70.  
  71.             }
  72.  
  73.             SetX(GetCenterX()+rand(-100,100));SetY(rand(120,200));
  74.  
  75.             Concentration01(30);
  76.  
  77.             loop(30){yield;}
  78.  
  79.         }
  80.  
  81.     }
  82.  
  83.    
  84.  
  85.  
  86.  
  87.     @DrawLoop {
  88.  
  89.         SetGraphicRect(0,0,124,124);
  90.  
  91.         SetTexture(sprite);
  92.  
  93.         DrawGraphic(GetX(),GetY());
  94.  
  95.     }
  96.  
  97. }
Add Comment
Please, Sign In to add comment