Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TouhouDanmakufu[Stage]
- #Title[vgj]
- #Text[vgjg]
- #Player[.\..\Futo\FUTOA.txt]
- #PlayLevel[Normal]
- #ScriptVersion[2]
- script_stage_main{
- let D = GetCurrentScriptDirectory;
- let bg = D ~ "system\bg 3.png";
- let s1 = D ~ "sfx\Select00.wav";
- let s2 = D ~ "sfx\Ok00.wav";
- let s3 = D ~ "sfx\Ok00.wav";
- let slide = 0;
- let slide2 = 0;
- let Selection = 1;
- let alph1 = 150;
- let alph2 = 70;
- let alph3 = 150;
- let alph4 = 150;
- let alph5 = 150;
- function Wait(let frames){loop(frames){yield;}}
- function WaitForZeroEnemy{while(GetEnemyNum != 0){yield;}}
- task select{
- if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==1){
- PlaySE(s2);
- loop(3){ loop(3){alph1=0; yield;} loop(2){alph1=255; yield;} }
- yield;}
- if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==2){
- PlaySE(s2);
- loop(3){loop(3){alph2=0; yield;} loop(2){alph2=255; yield;} }
- yield;}
- if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==3){
- PlaySE(s2);
- loop(3){loop(3){alph3=0; yield;} loop(2){alph3=255; yield;} }
- yield;}
- if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==4){
- PlaySE(s2);
- loop(3){loop(3){alph4=0; yield;} loop(2){alph4=255; yield;} }
- yield;}
- if(GetKeyState(VK_SHOT) == KEY_PUSH && Selection==5){
- PlaySE(s2);
- loop(3){loop(3){alph5=0; yield;} loop(2){alph5=255; yield;} }
- yield;}
- }
- @Initialize{
- LoadSE(s1);
- LoadSE(s2);
- LoadSE(s3);
- LoadGraphic(bg);
- thingy;
- }
- @MainLoop{
- if(GetKeyState(VK_UP) == KEY_PUSH){Selection-=1; PlaySE(s1);}
- if(GetKeyState(VK_DOWN) == KEY_PUSH){Selection+=1; PlaySE(s1);}
- if(GetKeyState(VK_BOMB) == KEY_PUSH){Selection=5; PlaySE(s3);}
- select;
- yield;
- }
- @DrawLoop{
- SetFontColor(0,255,255, 0,255,127);
- DrawText("Game Start",GetCenterX,GetCenterY,30,alph1);
- DrawText("Extra Start",GetCenterX+10,GetCenterY+30,30,alph2);
- DrawText("Practice Mode",GetCenterX+20,GetCenterY+60,30,alph3);
- DrawText("Option",GetCenterX+30,GetCenterY+90,30,alph4);
- DrawText("Quit",GetCenterX+40,GetCenterY+120,30,alph5);
- if(Selection==1){alph1=255; alph2=70; alph3=150; alph4=150; alph5=150;}
- if(Selection==2){alph1=150; alph2=255; alph3=150; alph4=150; alph5=150;}
- if(Selection==3){alph1=150; alph2=70; alph3=255; alph4=150; alph5=150;}
- if(Selection==4){alph1=150; alph2=70; alph3=150; alph4=255; alph5=150;}
- if(Selection==5){alph1=150; alph2=70; alph3=150; alph4=150; alph5=255;}
- if(Selection>5){Selection=1;}
- if(Selection<1){Selection=5;}
- //if(GetKeyState(VK_UP) == KEY_PUSH && Selection == 3;){Selection=1; PlaySE(s1);}
- //if(GetKeyState(VK_DOWN) == KEY_PUSH && Selection == 1; ){Selection=3; PlaySE(s1);}
- }
- @BackGround{
- SetTexture(bg);
- SetRenderState(ALPHA);
- SetAlpha(255);
- SetGraphicRect(0,0,20000,20000);
- SetGraphicScale(1,1);
- SetGraphicAngle(0,0,0);
- DrawGraphic(GetCenterX-slide2,GetCenterY+slide);
- slide+=2;
- slide2-=1;
- }
- @Finalize{
- DeleteSE(s1);
- DeleteGraphic(bg);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement