Guest User

h

a guest
Sep 30th, 2013
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[Frostbite"Glass Reflection"]
  3. #Text[Cirno's Spell Card]
  4. #BGM[script\cirno\Beloved Tomboyish Daughter.mp3]
  5. #PlayLevel[Lunatic]
  6. #Player[FREE]
  7. #ScriptVersion[2]
  8.  
  9. script_enemy_main {
  10.  
  11. let CSD = GetCurrentScriptDirectory;
  12.  
  13. let boss = CSD ~ "sprite.png";
  14. let cut = CSD ~ "cirnocutin.png";
  15. let bg = CSD ~ "ice.png";
  16.  
  17. @Initialize {
  18. SetLife(2000);
  19. SetTimer(60);
  20. SetScore(48000000);
  21. SetMovePosition01(GetCenterX, GetClipMinY + 120, 5);
  22. LoadGraphic(boss);
  23. LoadGraphic(cut);
  24. LoadGraphic(bg);
  25.  
  26. CutIn(YOUMU, "Frostbite"\""Glass Reflection"\",cut,0,0,566,775);
  27.  
  28. mainTask;
  29.  
  30. }
  31.  
  32. @MainLoop {
  33. SetCollisionA(GetX,GetY,24);
  34. SetCollisionB(GetX,GetY,16);
  35. yield;
  36. }
  37.  
  38. @DrawLoop {
  39.  
  40. SetTexture(boss);
  41. SetRenderState(ALPHA);
  42. SetAlpha(255);
  43. SetGraphicRect(0,0,81,92);
  44. SetGraphicScale(1,1);
  45. SetGraphicAngle(0,0,0);
  46. DrawGraphic(GetX,GetY);
  47.  
  48. }
  49.  
  50. @BackGround {
  51.  
  52. SetTexture(bg);
  53. SetRenderState(ALPHA);
  54. SetAlpha(255);
  55. SetGraphicRect(0,0,1600,1118);
  56. SetGraphicScale(1,1);
  57. SetGraphicAngle(0,0,0);
  58. DrawGraphic(GetCenterX,GetCenterY);
  59.  
  60. }
  61.  
  62. @Finalize {
  63. DeleteGraphic(boss);
  64. DeleteGraphic(bg);
  65. DeleteGraphic(cut);
  66.  
  67. }
  68.  
  69.  
  70. task mainTask{
  71. yield;
  72. fire;
  73. }
  74.  
  75. task fire{
  76. let x = 0;
  77. let dir = 0;
  78. wait(30);
  79. loop{
  80. while(x<36){
  81. CreateShotA(1,GetEnemyX,GetEnemyY,1);
  82. SetShotDataA(1,0,1,dir,0,0.5,3,AQUA02);
  83. SetShotDataA(1,0,0,dir,0,0.5,-3,BLUE03);
  84. FireShot(1);
  85.  
  86. dir+=360/36;
  87. x++;
  88.  
  89. }
  90. x = 0;
  91. dir = 0;
  92. wait(30);
  93.  
  94. yield;
  95. }
  96. }
  97.  
  98. //Wait Function
  99. function wait(w){
  100. loop(w) {yield;}
  101. }
  102.  
  103.  
  104.  
  105. }
Advertisement
Add Comment
Please, Sign In to add comment