Mewkyuu

Vesuvius

Jun 21st, 2011
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[Volcano Sign "Mt. Vesuvius"]
  3. #Text[Fire rains down, threatening to smother you in flaming
  4.  
  5. destruction.]
  6. #BackGround[Default]
  7. #PlayLevel[Easy]
  8. #Player[FREE]
  9. #ScriptVersion[2]
  10.  
  11. script_enemy_main {
  12. #include_function "lib\SHOT_REPLACE\shot_replace.dnh"
  13. let BossImage = ("script\img\ExRumia.png");
  14. let BossCutIn = ("script\img\ExRumia.png");
  15. let frame = 0;
  16. let frameV = 0;
  17. let frameB = 0;
  18. @Initialize {
  19. shotinit;
  20. LoadGraphic(BossImage);
  21. SetGraphicRect(1,1,64,64);
  22. SetX(GetCenterX);
  23. SetY(GetCenterY-45);
  24. SetLife(2000);
  25. SetDamageRate(50, 50);
  26. SetTimer(50);
  27. SetInvincibility(30);
  28. CutIn(YOUMU, "Volcano Sign"\""Mt. Vesuvius"\", BossCutIn, 0,
  29.  
  30. 0, 200, 600);
  31. SetScore(3000000);
  32. SetEnemyMarker(true);
  33. Concentration01(60);
  34. Concentration02(60);
  35. MagicCircle(false);
  36. SetEffectForZeroLife(60, 100, 1);
  37. }
  38.  
  39. @MainLoop {
  40. SetCollisionA(GetX, GetY, 24);
  41. SetCollisionB(GetX, GetY, 24);
  42.  
  43. if(frame==32){
  44. CreateShotA(1, rand(GetClipMinX, GetClipMaxX), 0, 0);
  45. SetShotDataA(1, 0, 2, rand(45, 135), 0.3, 0, 3, SP01);
  46. SetShotDataA(1, 40, 2, rand(45, 135), rand(-0.05,
  47.  
  48. 0.05), 0.1, 3, SP01);
  49. FireShot(1);
  50. frame=30;
  51. }
  52.  
  53. if(frameB==43){
  54. CreateShotA(2, rand(GetClipMinX, GetClipMaxX), 0, 0);
  55. SetShotDataA(2, 0, 2, rand(45, 135), 0.3, 0, 3,
  56.  
  57. RED02);
  58. SetShotDataA(2, 40, 1, rand(45, 135), rand(-0.05,
  59.  
  60. 0.05), 0.1, 2, RED02);
  61. FireShot(2);
  62. frameB=30;
  63. }
  64.  
  65. if(frameV==1){
  66. CreateShotA(0, rand(GetX-3, GetX+3), rand(GetY-3,
  67.  
  68. GetY+3), 0);
  69. SetShotDataA(0, 0, 10, 270, rand(-3, 3), 0, 10, SP01);
  70. FireShot(0);
  71. frameV=0;
  72. }
  73.  
  74. frame++;
  75. frameV++;
  76. frameB++;
  77. }
  78.  
  79. @DrawLoop {
  80. SetTexture(BossImage);
  81. DrawGraphic(GetX,GetY);
  82.  
  83. }
  84.  
  85. @Finalize {
  86. }
  87.  
  88. }
Advertisement
Add Comment
Please, Sign In to add comment