SilentSorrow

Spellcard Trial (see Trial#2 of the FireBalls)

Feb 9th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. #TouhouDanmakufu
  2. #Title[Utsuho Encounter Spell-1]
  3. #Text[1st Spellcard of Utsuho]
  4. #Player[FREE]
  5. #ScriptVersion[2]
  6.  
  7. script_enemy_main{
  8.  
  9. #include_function ".\function_cutin.txt"
  10. #include_function ".\System\variables.txt"
  11. #include_function ".\System\functions.txt"
  12. #include_function ".\System\caution.txt"
  13. #include_function ".\System\FireBalls.txt"
  14. #include_function ".\Animations\UtsuhoAnimationLibrary.txt"
  15.  
  16. @Initialize{
  17. LoadGraphic(okuutex);
  18. LoadGraphic(okuuBg1);
  19. LoadGraphic(okuuLay);
  20. LoadGraphic(okuucut);
  21. LoadUserShotData(shots);
  22. SetScore(6700000);
  23. SetLife(4000);
  24. SetTimer(64);
  25. SetDamageRate(80,65);
  26. cutin("NAZRIN","text "\""text2"\",okuucut,0,0,400,400);
  27. SetMovePosition01(GetCenterX,GetCenterY-100,5);
  28. SetInvincibility(120);
  29. mainTask;
  30. InitBoss;
  31. }
  32.  
  33.  
  34. @MainLoop{
  35. SetCollisionA(GetX,GetY,30);
  36. SetCollisionB(GetX,GetY,25);
  37. yield;
  38. }
  39.  
  40.  
  41. @DrawLoop{
  42. spellCirc;
  43. SetTexture(okuutex);
  44. SetGraphicAngle(0,0,0);
  45. SetRenderState(ALPHA);
  46. SetAlpha(255);
  47. SetGraphicScale(0.8,0.8);
  48. OkuuAnimations;
  49. DrawGraphic(GetX,GetY);
  50. }
  51.  
  52.  
  53. @BackGround{
  54. BgDScroll(okuuBg1,1,255);
  55. BgRotate(okuuLay,255,1.8,0.3);
  56. }
  57.  
  58.  
  59. @Finalize{
  60. DeleteGraphic(okuutex);
  61. }
  62.  
  63. task mainTask{
  64. wait(120);
  65. cautionSign;
  66. wait(60);
  67. //fireBalls;
  68. //movement;
  69. fire;
  70. yield;
  71. }
  72.  
  73. task fire{
  74. let dir = 0;
  75. let count = 8;
  76. let x = 0;
  77. loop{
  78. while(x < count){
  79. NuclearFireBalls(GetEnemyX,GetEnemyY,2,dir);
  80. dir+=360/count;
  81. x++;
  82. }
  83. x = 0;
  84. wait(90);
  85. }
  86. }
  87. }
Advertisement
Add Comment
Please, Sign In to add comment