Advertisement
Guest User

Menu thing

a guest
Jul 23rd, 2013
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. #TouhouDanmakufu[Stage]
  2. #Title[vgj]
  3. #Text[vgjg]
  4. #Player[.\..\Futo\FUTOA.txt]
  5. #PlayLevel[Normal]
  6. #ScriptVersion[2]
  7.  
  8. script_stage_main{
  9. let D = GetCurrentScriptDirectory;
  10. let bg = D ~ "system\bg 3.png";
  11.  
  12. let s1 = D ~ "sfx\Select00.wav";
  13. let s2 = D ~ "sfx\Ok00.wav";
  14. let s3 = D ~ "sfx\Ok00.wav";
  15. let slide = 0;
  16. let slide2 = 0;
  17. let Selection = 1;
  18. let alph1 = 150;
  19. let alph2 = 70;
  20. let alph3 = 150;
  21. let alph4 = 150;
  22. let alph5 = 150;
  23.  
  24. function Wait(let frames){loop(frames){yield;}}
  25. function WaitForZeroEnemy{while(GetEnemyNum != 0){yield;}}
  26.  
  27. task select{
  28. if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==1){
  29. PlaySE(s2);
  30. loop(3){ loop(3){alph1=0; yield;} loop(2){alph1=255; yield;} }
  31. yield;}
  32.  
  33. if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==2){
  34. PlaySE(s2);
  35. loop(3){loop(3){alph2=0; yield;} loop(2){alph2=255; yield;} }
  36. yield;}
  37.  
  38. if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==3){
  39. PlaySE(s2);
  40. loop(3){loop(3){alph3=0; yield;} loop(2){alph3=255; yield;} }
  41. yield;}
  42.  
  43. if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==4){
  44. PlaySE(s2);
  45. loop(3){loop(3){alph4=0; yield;} loop(2){alph4=255; yield;} }
  46. yield;}
  47.  
  48. if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==5){
  49. PlaySE(s2);
  50. loop(3){loop(3){alph5=0; yield;} loop(2){alph5=255; yield;} }
  51. yield;}
  52. }
  53. @Initialize{
  54. LoadSE(s1);
  55. LoadSE(s2);
  56. LoadSE(s3);
  57. LoadGraphic(bg);
  58. thingy;
  59. }
  60.  
  61. @MainLoop{
  62. if(GetKeyState(VK_UP) == KEY_PUSH){Selection-=1; PlaySE(s1);}
  63. if(GetKeyState(VK_DOWN) == KEY_PUSH){Selection+=1; PlaySE(s1);}
  64. if(GetKeyState(VK_BOMB) == KEY_PUSH){Selection=5; PlaySE(s3);}
  65. select;
  66. yield;
  67. }
  68. @DrawLoop{
  69. SetFontColor(0,255,255, 0,255,127);
  70. DrawText("Game Start",GetCenterX,GetCenterY,30,alph1);
  71. DrawText("Extra Start",GetCenterX+10,GetCenterY+30,30,alph2);
  72. DrawText("Practice Mode",GetCenterX+20,GetCenterY+60,30,alph3);
  73. DrawText("Option",GetCenterX+30,GetCenterY+90,30,alph4);
  74. DrawText("Quit",GetCenterX+40,GetCenterY+120,30,alph5);
  75.  
  76. if(Selection==1){alph1=255; alph2=70; alph3=150; alph4=150; alph5=150;}
  77. if(Selection==2){alph1=150; alph2=255; alph3=150; alph4=150; alph5=150;}
  78. if(Selection==3){alph1=150; alph2=70; alph3=255; alph4=150; alph5=150;}
  79. if(Selection==4){alph1=150; alph2=70; alph3=150; alph4=255; alph5=150;}
  80. if(Selection==5){alph1=150; alph2=70; alph3=150; alph4=150; alph5=255;}
  81.  
  82. if(Selection>5){Selection=1;}
  83. if(Selection<1){Selection=5;}
  84. //if(GetKeyState(VK_UP) == KEY_PUSH && Selection == 3;){Selection=1; PlaySE(s1);}
  85. //if(GetKeyState(VK_DOWN) == KEY_PUSH && Selection == 1; ){Selection=3; PlaySE(s1);}
  86. }
  87.  
  88. @BackGround{
  89. SetTexture(bg);
  90. SetRenderState(ALPHA);
  91. SetAlpha(255);
  92. SetGraphicRect(0,0,20000,20000);
  93. SetGraphicScale(1,1);
  94. SetGraphicAngle(0,0,0);
  95. DrawGraphic(GetCenterX-slide2,GetCenterY+slide);
  96. slide+=2;
  97. slide2-=1;
  98. }
  99.  
  100. @Finalize{
  101. DeleteSE(s1);
  102. DeleteGraphic(bg);
  103. }
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement