Guest User

hhhh

a guest
Sep 18th, 2011
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[Proiettile Ciel "Heat of the Falling Ice"]
  3. #Text[The main shot of the Eight Gods.]
  4. #Background[.\img\IceMountain.png, 1, 1]
  5. #ScriptVersion[2]
  6.  
  7. script_enemy_main {
  8.  
  9. let frame = 0;
  10. SetLife(1000);
  11. SetMovePosition01 (GetCenterX,GetCenterY,5);
  12. SetTimer(65);
  13. let imgBoss = "script\img\ExRumia.png";
  14.  
  15. LoadGraphic(imgBoss);
  16. SetTexture(imgBoss);
  17. SetGraphicRect(0, 0, 63, 63);
  18. frame++;
  19.  
  20. }
  21. @Initialize {
  22. let imgBoss = "script\img\ExRumia.png";
  23. LoadGraphic(imgBoss);
  24. SetTexture(imgBoss);
  25. SetGraphicRect(0, 0, 63, 63);
  26. }
  27.  
  28. @MainLoop {
  29. SetCollisionA(GetX, GetY, 24);
  30. SetCollisionB(GetX, GetY, 24);
  31. if (frame == 60)
  32. {
  33. CreateShot01(GetX, GetY, 3, GetAngleToPlayer, RED01, 10);
  34. frame=50;
  35. CreateShot01(GetX, GetY, 4, GetAngleToPlayer, RED02, 11);
  36. frame=50;
  37. CreateShot01(GetX, GetY, 5, GetAngleToPlayer, RED03, 12);
  38. frame=50;
  39. CreateShot01(GetX, GetY, 6, GetAngleToPlayer, RED02, 13);
  40. frame=50;
  41. CreateShot01(GetX, GetY, 7, GetAngleToPlayer, RED01, 14);
  42. }
  43. if (frame == 240)
  44. {
  45. CreateLaser01(GetX, GetY, 5, GetAngleToPlayer, 200, 5, RED22, 60);
  46. frame=230;
  47. CreateLaser01(GetX, GetY, 5, GetAngleToPlayer, 200, 10, RED22, 120);
  48. frame=230;
  49. CreateLaser01(GetX, GetY, 5, GetAngleToPlayer, 200, 15, RED32, 150);
  50. frame=230;
  51. CreateLaser01(GetX, Gety, 5, GetAngleToPlayer, 200, 20, RED22, 165);
  52. frame=230;
  53. CreateLaser01(GetX, GetY, 5, GetAngleToPlayer, 200, 25, RED22, 170);
  54. frame=0;
  55.  
  56. loop(36){
  57. CreateShot01(GetX, GetY, 0, angle, BLUE12, 170);
  58. angle += 360/36
  59. }
  60. loop(36){
  61. CreateShot01(GetX, GetY, 180, angle, BLUE12, 170);
  62. angle += 360/36
  63. }
  64. loop(36){
  65. CreateShot01(GetX, GetY, 360, angle, BLUE12, 170);
  66. angle += 360/36
  67. }
  68. }
  69. frame++;
  70. }
  71.  
  72. @DrawLoop {
  73. SetTexture(imgBoss);
  74. SetRenderState(ALPHA)
  75. SetAlpha(255);
  76. SetGraphicRect(0,0,256,64);
  77. SetGraphicScale(1,1);
  78. SetGraphicAngle(0,0,0);
  79. DrawGraphic(GetX, GetY);
  80.  
  81. {
  82.  
  83. @Finalize {
  84. DeleteSE(shot;)
  85. DeleteGraphic(imgBoss)
  86. }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment