Advertisement
Guest User

Weirdos gonna weird

a guest
Apr 26th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.93 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[British Tea's First Script]
  3. #Text[I'm not glad of this]
  4. #Player[REIMU, MARISA]
  5. #ScriptVersion[2]
  6.  
  7. script_enemy_main {
  8.  
  9.     #include_function "lib\SHOT_REPLACE\shot_replace.dnh";
  10.     let CSD = GetCurrentScriptDirectory;
  11.     let imgBoss = CSD ~ "IMG\RussSprite.png";
  12.  
  13.     let frame = 0;
  14.  
  15.     @Initialize {
  16.     shotinit;
  17.         LoadGraphic(imgBoss);
  18.         SetLife(3000);
  19.         SetTimer(80);
  20.         SetInvincibility(30);
  21.     SetMovePosition01(GetCenterX, GetCenterY, 90);
  22.     }
  23.  
  24.     @MainLoop {
  25.         SetCollisionA(GetX, GetY, 32);
  26.         SetCollisionB(GetX, GetY, 16);
  27.  
  28.         if(frame==30){
  29.             CreateShot01(GetX, GetY, 2, 80, RED01, 10);
  30.             CreateShot01(GetX, GetY, 2, 90, RED01, 10);
  31.             frame = 0;
  32.     }
  33.     frame++;
  34.     }
  35.  
  36.     @DrawLoop {
  37.    
  38.         SetTexture(imgBoss);
  39.         SetGraphicRect(0,0,48,88);
  40.         DrawGraphic(GetX,GetY);
  41.        
  42.     }
  43.  
  44.     @Finalize {
  45.  
  46.     }
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement