Guest User

Stage Script

a guest
Sep 6th, 2013
723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. #TouhouDanmakufu[Stage]
  2. #Title[Reimu Boss ~Easy~]
  3. #Text[MotK Contest Entry by
  4. Ultima124 aka InfiniteWave]
  5. #Image[]
  6. #Background[]
  7. #BGM[]
  8. #Player[FREE]
  9. #ScriptVersion[2]
  10.  
  11. script_stage_main{
  12. let csd = GetCurrentScriptDirectory;
  13. #include_function=".\include\Difficulty.txt"
  14.  
  15. let depth_buffer_enable = true;
  16. let imagefile3 = csd~ ".\Backgrounds\Back_2.png";
  17. let imagefile = csd~ ".\Backgrounds\Back.png";
  18. let imagefile2 = csd~ ".\Backgrounds\Back_2.png";
  19. let f = 0;
  20. let ff = 6;
  21. let e = 0;
  22. let ee = 2;
  23. let mov1 =0;
  24. let mov2 =0;
  25. let angle = 300;
  26. let alpha = 0;
  27. function WaitForNoEvent { while(OnEvent) { yield; } }
  28. function Wait(let frames){loop(frames){yield;}
  29. }
  30. function WaitForZeroEnemy{
  31. while(GetEnemyNum != 0){yield;}
  32. }
  33. task stage{
  34.  
  35. Wait(120);
  36. CreateEnemyBossFromFile(GetCurrentScriptDirectory~"Reimu BossE.txt", 50, 0, 0, 0, 0);
  37. WaitForZeroEnemy;
  38. Clear;
  39. }
  40.  
  41. @Initialize{
  42.  
  43. LoadGraphic(imagefile);
  44. LoadGraphic(imagefile2);
  45. LoadGraphic(imagefile3);
  46.  
  47. stage;
  48. }
  49. @MainLoop{
  50.  
  51. // angle++;
  52. mov1++;
  53. mov2++;
  54. yield;
  55.  
  56. if(angle<=1100){
  57. angle += 1;
  58. }
  59. if(alpha<=80){
  60. alpha += 1;
  61. }
  62. }
  63. @BackGround{
  64. WriteZBuffer(depth_buffer_enable);
  65. UseZBuffer(depth_buffer_enable);
  66. SetViewTo(0, 0, 0);
  67. SetViewFrom(50, 0, 0);
  68. SetAlpha(255);
  69. SetColor(255,200,200);
  70. SetTexture(imagefile);
  71. SetGraphicRect(0, 0, 3*512, 3*128+f);
  72. SetGraphicScale(1, 1);
  73. SetGraphicAngle(10, 270, 0);
  74. DrawGraphic3D(-angle, 0, 0);
  75.  
  76. SetAlpha(255);
  77. SetColor(255,255,255);
  78. SetTexture(imagefile2);
  79. SetGraphicRect(0, 0-f, 6*512, 256);
  80. SetGraphicScale(1, 1);
  81. SetGraphicAngle(0, -270, 0);
  82. DrawGraphic3D(-100, 0, 0);
  83.  
  84.  
  85. SetAlpha(255);
  86. SetColor(255,255,255);
  87. SetTexture(imagefile3);
  88. SetGraphicRect(0, 0, 512*6, 256+f);
  89. SetGraphicScale(1, 1);
  90. SetGraphicAngle(0, -270, 0);
  91. DrawGraphic3D(-100, 0, 0);
  92.  
  93.  
  94. yield;
  95. f+=ff;
  96. e+=ee;
  97. }
  98. @Finalize{
  99.  
  100. }
  101.  
  102. }
Advertisement
Add Comment
Please, Sign In to add comment