diff options
author | chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> | 2014-07-14 02:16:11 +0000 |
---|---|---|
committer | chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> | 2014-07-14 02:16:11 +0000 |
commit | 4b221a977fcff61db744b422920d203e2773e787 (patch) | |
tree | 99933b8fe6ceca0460803349b9249789bdca4f46 /menus.h | |
parent | 32a2523dd5c51b31b31f5e43a7cebdb16e7f5e84 (diff) | |
download | bullet-lab-remix-4b221a977fcff61db744b422920d203e2773e787.tar.xz |
Rev. 99! WTF?
THIS IS THE FINAL RELEASE CANDIDATE!!!
Everything is frozen, that means no more new features will be
added and no big changes will be made after this revision. Only
bug fixes will be provided.
//Again, "frozen" is a term borrowed from the Debian project and
//is completely unrelated to Cirno!
Tweak bullet9, shrink its removal border.
Change Multpo texture, add spawning effect.
Fix stubbed rankings.
Update sprite sheet.
Store assessment total elapsed time in the score file. Score
files from older revisions shouldn't cause any errors but you may
get "Time elapsed 0.00" in highscore details. If you've got any
sort of OCD (Obsessive-compulsive disorder), just remove it.
Document!!!
Diffstat (limited to 'menus.h')
-rw-r--r-- | menus.h | 30 |
1 files changed, 20 insertions, 10 deletions
@@ -61,15 +61,22 @@ void Options_Writeback() char *getRank() { static char retval[256]; - //stub! //sprintf something to retval if(mode!=2) { - if(level<=3)sprintf(retval,"Try more..."); if(level<=6)sprintf(retval,"Still need more effort!"); + if(level<=3)sprintf(retval,"Try more..."); if(level==7)sprintf(retval,"You've done it!"); if(level==-1)sprintf(retval,"Why do you come to Earth?"); } + else + { + if(asts>900)sprintf(retval,"Contact me immediately!!"); + if(asts<=900)sprintf(retval,"Perfect player."); + if(asts<=600)sprintf(retval,"That's awesome."); + if(asts<=450)sprintf(retval,"Not so bad..."); + if(asts<=120)sprintf(retval,"Are you kidding?"); + } return retval; } static const char* MMStr[]={ @@ -1177,8 +1184,9 @@ public: MenuFont->printf(xoffset-100,280,HGETEXT_LEFT,"Your Ranking: %s",getRank()); if(mode==2) { - MenuFont->printf(xoffset-100,310,HGETEXT_LEFT,"Semi-collisions %d",semicoll); - MenuFont->printf(xoffset-100,340,HGETEXT_LEFT,"Average FPS: %.02f",averfps); + MenuFont->printf(xoffset-100,310,HGETEXT_LEFT,"Time elapsed: %.2fs",((int)(asts*100))/100.0); + MenuFont->printf(xoffset-100,340,HGETEXT_LEFT,"Semi-collisions %d",semicoll); + MenuFont->printf(xoffset-100,370,HGETEXT_LEFT,"Average FPS: %.2f",averfps); } else { @@ -1188,7 +1196,7 @@ public: MenuFont->printf(xoffset-100,310,HGETEXT_LEFT,"Collisions %d",coll); MenuFont->printf(xoffset-100,340,HGETEXT_LEFT,"Semi-collisions %d",semicoll); MenuFont->printf(xoffset-100,370,HGETEXT_LEFT,"CLR Usage %d",clrusg); - MenuFont->printf(xoffset-100,400,HGETEXT_LEFT,"Average FPS: %.02f",averfps); + MenuFont->printf(xoffset-100,400,HGETEXT_LEFT,"Average FPS: %.2f",averfps); } CompleteTitle->Render(xoffset-200,200); } @@ -1468,8 +1476,8 @@ public: ConfigureQuad(&UpperGradient,xoffset-140,290,600,100); ConfigureQuad(&LowerGradient,xoffset-140,440,600,130); if(hge->Input_GetKeyStateEx(HGEK_UP)==HGEKST_HIT&&selected>0)--selected,TriggerSound(0); - if(hge->Input_GetKeyStateEx(HGEK_DOWN)==HGEKST_HIT&&selected<(view==1?5:7)-1)++selected,TriggerSound(0); - if(hge->Input_GetKeyStateEx(HGEK_ESCAPE)==HGEKST_HIT)TriggerSound(0),selected=(view==1?5:7)-1; + if(hge->Input_GetKeyStateEx(HGEK_DOWN)==HGEKST_HIT&&selected<(view==1?6:7)-1)++selected,TriggerSound(0); + if(hge->Input_GetKeyStateEx(HGEK_ESCAPE)==HGEKST_HIT)TriggerSound(0),selected=(view==1?6:7)-1; yoffset=-selected*30; if(fabs(dyoffset-yoffset)<7)dyoffset=yoffset; if(dyoffset<yoffset)dyoffset+=hge->Timer_GetDelta()*400; @@ -1492,9 +1500,11 @@ public: if(dyoffset+430>289.9&&dyoffset+430<540.1) MenuFont->printf(xoffset,dyoffset+430,HGETEXT_LEFT,"Scored %lld by %s",WrapRec[no].score,WrapRec[no].name); if(dyoffset+460>289.9&&dyoffset+460<540.1) - MenuFont->printf(xoffset,dyoffset+460,HGETEXT_LEFT,"Semi-Collisions %d",WrapRec[no].scoll); + MenuFont->printf(xoffset,dyoffset+460,HGETEXT_LEFT,"Time elapsed %.2fs",WrapRec[no].rescol/100.0); if(dyoffset+490>289.9&&dyoffset+490<540.1) - MenuFont->printf(xoffset,dyoffset+490,HGETEXT_LEFT,"Average FPS %d.%d",WrapRec[no].af_int,WrapRec[no].af_fric); + MenuFont->printf(xoffset,dyoffset+490,HGETEXT_LEFT,"Semi-Collisions %d",WrapRec[no].scoll); + if(dyoffset+520>289.9&&dyoffset+520<540.1) + MenuFont->printf(xoffset,dyoffset+520,HGETEXT_LEFT,"Average FPS %d.%d",WrapRec[no].af_int,WrapRec[no].af_fric); } else { @@ -1514,7 +1524,7 @@ public: if(dyoffset+550>289.9&&dyoffset+550<540.1) MenuFont->printf(xoffset,dyoffset+550,HGETEXT_LEFT,"Average FPS %d.%d",WrapRec[no].af_int,WrapRec[no].af_fric); } - double calcy=(view==1?4:6)*30+dyoffset+400; + double calcy=(view==1?5:6)*30+dyoffset+400; if(calcy>289.9&&calcy<540.1) MenuFont->printf(xoffset,calcy,HGETEXT_LEFT,"back"); Ribb->RenderEx(xoffset-50,395,0,6,1); |