Advertisement
Guest User

stuf

a guest
Mar 2nd, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. #TouhouDanmakufu{Single}
  2. #Title[Non-Spell 3]
  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.  
  12. let imgBoss = CSD ~ "system\touhoucharacter1.png";
  13.  
  14. @Initialize{
  15. SetLife(2000);
  16. SetTimer(30);
  17. SetEnemyMarker(true);
  18. LoadGraphic(imgBoss);
  19. SetMovePosition02(GetCenterX, GetCenterY-92, 0);
  20. SetInvincibility(120);
  21. SetDamageRate(100,18);
  22. fire;
  23. fireb;
  24. firec;
  25. }
  26.  
  27. @MainLoop{
  28. SetCollisionA(GetX,GetY,32);
  29. SetCollisionB(GetX,GetY,16);
  30. yield;
  31. }
  32.  
  33. @DrawLoop{
  34. SetTexture(imgBoss);
  35. SetRenderState(ALPHA);
  36. SetAlpha(255);
  37. SetGraphicRect(0,0,110,110);
  38. SetGraphicScale(0.7,0.7);
  39. SetGraphicAngle(0,0,0);
  40. DrawGraphic(GetX,GetY);
  41. }
  42.  
  43. @BackGround{}
  44.  
  45. @Finalize{
  46. DeleteGraphic(imgBoss);
  47. }
  48. task fire{
  49. wait(60);
  50. let ang = 0;
  51. let dir = 0;
  52. let x = 0;
  53. loop{
  54. while(x<36){
  55. CreateShot01(GetX, GetY, 3, ang, BLUE02,0);
  56. CreateShot01(GetX, GetY, 3, dir, BLUE02,0);
  57. ang+=5000/5;
  58. dir+=5000/5;
  59. x++;
  60. }
  61. x = 0;
  62. ang+=5;
  63. dir-=5;
  64. wait(10);
  65. yield;
  66. }}
  67. task fireb{
  68. wait(60);
  69. let ang = 0;
  70. let dir = 0;
  71. let x = 0;
  72. loop{
  73. while(x<36){
  74. CreateShot01(GetX, GetY, 3, ang, BLUE02,0);
  75. CreateShot01(GetX, GetY, 3, dir, BLUE02,0);
  76. ang+=5000/5;
  77. dir+=5000/5;
  78. x++;
  79. }
  80. x = 0;
  81. ang+=20;
  82. dir-=20;
  83. wait(6);
  84. yield;
  85. }}
  86. task firec{
  87. wait(60);
  88. let dir = GetAngleToPlayer;
  89. let x = 0;
  90. loop{
  91. while(x<36){
  92. CreateShot01(GetX, GetY, 4, dir, AQUA04,0);
  93. CreateShot01(GetX, GetY, 4, dir-1.5, AQUA04,0);
  94. CreateShot01(GetX, GetY, 4, dir+1.5, AQUA04,0);
  95. CreateShot01(GetX, GetY, 4, dir-3, AQUA04,0);
  96. CreateShot01(GetX, GetY, 4, dir+3, AQUA04,0);
  97. CreateShot01(GetX, GetY, 4, dir, AQUA04,3);
  98. CreateShot01(GetX, GetY, 4, dir-1.5, AQUA04,3);
  99. CreateShot01(GetX, GetY, 4, dir+1.5, AQUA04,3);
  100. CreateShot01(GetX, GetY, 4, dir-3, AQUA04,3);
  101. CreateShot01(GetX, GetY, 4, dir+3, AQUA04,3);
  102. CreateShot01(GetX, GetY, 4, dir, AQUA04,6);
  103. CreateShot01(GetX, GetY, 4, dir-1.5, AQUA04,6);
  104. CreateShot01(GetX, GetY, 4, dir+1.5, AQUA04,6);
  105. CreateShot01(GetX, GetY, 4, dir-3, AQUA04,6);
  106. CreateShot01(GetX, GetY, 4, dir+3, AQUA04,6);
  107. CreateShot01(GetX, GetY, 4, dir, AQUA04,0);
  108. CreateShot01(GetX, GetY, 4, dir-1.5, AQUA04,9);
  109. CreateShot01(GetX, GetY, 4, dir+1.5, AQUA04,9);
  110. CreateShot01(GetX, GetY, 4, dir-3, AQUA04,9);
  111. CreateShot01(GetX, GetY, 4, dir+3, AQUA04,9);
  112. dir+=5000/5;
  113. x++;
  114. }
  115. x = 0;
  116. dir = GetAngleToPlayer;
  117. wait(60);
  118. yield;
  119. }}
  120. function wait(w){
  121. loop(w){yield;}
  122. }
  123. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement