last minute commit......

This commit is contained in:
Kevinmonitor 2023-01-30 22:49:08 +07:00
parent cb4d9d0881
commit b8c58755a5
2 changed files with 24 additions and 9 deletions

View File

@ -438,21 +438,36 @@ task EndBonus(){
rankAvgFinal = rankSum/length(rankAvg);
float multiplierBonus = (GetPlayerLife() + timer/60 + GetCommonDataPtr(GROUNDENM_PTR, 0)/5 + GetCommonDataPtr(FLYINGENM_PTR, 0)/5 + rankAvgFinal) * 30;
int scoreBonus = (trunc ( (multiplierBonus * 100000) / 100 ) * 10);
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2-220, 30, 0xCF007A, "LIVES REMAINING: " ~ IntToString(GetPlayerLife()));
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2-180, 30, 0x3500CF, "TIME REMAINING: " ~ vtos("5.2f", timer/60));
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2-140, 30, 0xCF6100, "ENEMIES DEFEATED: " ~ IntToString(GetCommonDataPtr(GROUNDENM_PTR, 0) + GetCommonDataPtr(FLYINGENM_PTR, 0)));
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2-100, 30, 0xCF0000, "AVERAGE RANK LV: " ~ vtos("5.2f", rankAvgFinal));
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2-60, 30, 0xF68000, "END-OF-STAGE BONUS: " ~ DigitToCommaArray(scoreBonus));
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2, 30, 0xFFA300, "END BONUS:");
wait(120);
float multiplierBonus = (GetPlayerLife() + timer/60 + GetCommonDataPtr(GROUNDENM_PTR, 0)/5 + GetCommonDataPtr(FLYINGENM_PTR, 0)/5 + rankAvgFinal) * 30;
int scoreBonus = (trunc ( (multiplierBonus * 100000) / 100 ) * 10);
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2+60, 60, 0xFFA300, DigitToCommaArray(scoreBonus));
AddScore(scoreBonus);
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2, 30, 0xFFA300, "FINAL SCORE:");
wait(90);
int score = trunc(GetScore()/10) * 10;
int scoreMilNum = score/1000000;
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2+60, 60, 0xFFA300, DigitToCommaArray(score));
string RANK_TITLE = "C";
if(scoreMilNum > 300) {RANK_TITLE = "[font oc=(255, 108, 0)]UNBEATABLE!!!"}
else if(scoreMilNum > 250){RANK_TITLE = "[font oc=(255, 203, 0)]RANK S!!"}
else if(scoreMilNum > 175){RANK_TITLE = "[font oc=(49, 223, 27)]RANK A!"}
else if(scoreMilNum > 100){RANK_TITLE = "[font oc=(27, 171, 223)]RANK B"}
else {RANK_TITLE = "[font oc=(167, 27, 223)]RANK C"}
_CreateBonusText(STG_WIDTH/2, STG_HEIGHT/2+90, 40, 0xE4440A, RANK_TITLE);
wait(60);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

After

Width:  |  Height:  |  Size: 189 KiB