Added difficulty indicator to the status screen.

This commit is contained in:
Julie Marchant 2019-05-21 18:36:45 -04:00
parent 5931846f03
commit 5670032156
2 changed files with 26 additions and 0 deletions

View File

@ -547,6 +547,7 @@ enum {
// Status
TS_STATUS_HEADER,
TS_STATUS_DIFFICULTY,
TS_SHOTS_FIRED,
TS_HITS_SCORED,
TS_ACCURACY,

View File

@ -232,9 +232,34 @@ These are set only once.
static void intermission_setStatusLines()
{
char string[50];
char difficulty[50];
int timeTaken = game.timeTaken;
int y;
switch (game.difficulty)
{
case DIFFICULTY_EASY:
strcpy(difficulty, "Easy");
break;
case DIFFICULTY_NORMAL:
strcpy(difficulty, "Normal");
break;
case DIFFICULTY_HARD:
strcpy(difficulty, "Hard");
break;
case DIFFICULTY_NIGHTMARE:
strcpy(difficulty, "Nightmare!");
break;
case DIFFICULTY_ORIGINAL:
strcpy(difficulty, "Classic");
break;
default:
strcpy(difficulty, "???");
}
sprintf(string, "Difficulty : %s", difficulty);
gfx_createTextObject(TS_STATUS_DIFFICULTY, string, 0, 0, FONT_WHITE);
sprintf(string, "Shots Fired : %d", game.shots);
gfx_createTextObject(TS_SHOTS_FIRED, string, 0, 0, FONT_WHITE);