Guest User

Untitled

a guest
Dec 13th, 2011
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title [Test script]
  3. #Text [shot on damage testing]
  4. #ScriptVersion [2]
  5. #Player[FREE]
  6.  
  7. script_enemy_main {
  8. let CSD = GetCurrentScriptDirectory;
  9. let bosstex="script\ExRumia\ExRumia.png";
  10. let count=0;
  11.  
  12. @Initialize {
  13. SetLife(2000);
  14. SetScore(1000000);
  15. LoadGraphic(bosstex);
  16. MagicCircle(false);
  17. SetX(GetCenterX);
  18. SetY(100);
  19. firebulletz;
  20. }
  21.  
  22. @MainLoop {
  23. SetCollisionA(GetX,GetY,32);
  24. SetCollisionB(GetX,GetY,32);
  25. count=GetHitCount;
  26. yield;
  27. }
  28.  
  29. task firebulletz{
  30. loop{
  31. while(count>0){
  32. CreateShot01(GetX,GetY,2,rand(180,360),RED05,0);
  33. count--;
  34. yield;
  35. }
  36. yield;
  37. }
  38. }
  39.  
  40. @DrawLoop {
  41. SetTexture(bosstex);
  42. SetGraphicRect(0,0,63,63);
  43. DrawGraphic(GetX,GetY);
  44. }
  45.  
  46. @BackGround {
  47. yield;
  48. }
  49.  
  50. @Finalize {
  51. }
  52.  
  53. }
  54.  
Advertisement
Add Comment
Please, Sign In to add comment