Guest User

i like toast

a guest
Mar 16th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[Mid-Boss Non-Spell 1]
  3. #Text[An attempt at making a non-spell]
  4. #Player[REIMU]
  5. #ScriptVersion[2]
  6. #PlayLevel[Normal]
  7.  
  8. script_enemy_main{
  9.  
  10. let CSD = GetCurrentScriptDirectory;
  11. let imgBoss = CSD ~ "system\touhoucharacter1.png";
  12.  
  13. @Initialize{
  14. SetLife(1500);
  15. SetTimer(30);
  16. SetEnemyMarker(true);
  17. SetMovePosition01(GetCenterX,GetCenterY,5);
  18. LoadGraphic(imgBoss);
  19. SetInvincibility(120);
  20. SetDamageRate(100,18);
  21. fire;
  22. }
  23.  
  24. @MainLoop{
  25. SetCollisionA(GetX,GetY,32);
  26. SetCollisionB(GetX,GetY,16);
  27. yield;
  28. }
  29.  
  30. @DrawLoop{
  31. SetTexture(imgBoss);
  32. SetRenderState(ALPHA);
  33. SetAlpha(255);
  34. SetGraphicRect(0,0,110,110);
  35. SetGraphicScale(0.7,0.7);
  36. SetGraphicAngle(0,0,0);
  37. DrawGraphic(GetX,GetY);
  38. }
  39. @BackGround{}
  40. @Finalize{DeleteGraphic(imgBoss);}
  41. task fire{}
  42. function wait(w){loop(w){yield;}}
  43. }
Advertisement
Add Comment
Please, Sign In to add comment