Added difficulty indicator to the status screen.
This commit is contained in:
parent
5931846f03
commit
5670032156
|
@ -547,6 +547,7 @@ enum {
|
||||||
|
|
||||||
// Status
|
// Status
|
||||||
TS_STATUS_HEADER,
|
TS_STATUS_HEADER,
|
||||||
|
TS_STATUS_DIFFICULTY,
|
||||||
TS_SHOTS_FIRED,
|
TS_SHOTS_FIRED,
|
||||||
TS_HITS_SCORED,
|
TS_HITS_SCORED,
|
||||||
TS_ACCURACY,
|
TS_ACCURACY,
|
||||||
|
|
|
@ -232,9 +232,34 @@ These are set only once.
|
||||||
static void intermission_setStatusLines()
|
static void intermission_setStatusLines()
|
||||||
{
|
{
|
||||||
char string[50];
|
char string[50];
|
||||||
|
char difficulty[50];
|
||||||
int timeTaken = game.timeTaken;
|
int timeTaken = game.timeTaken;
|
||||||
int y;
|
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);
|
sprintf(string, "Shots Fired : %d", game.shots);
|
||||||
gfx_createTextObject(TS_SHOTS_FIRED, string, 0, 0, FONT_WHITE);
|
gfx_createTextObject(TS_SHOTS_FIRED, string, 0, 0, FONT_WHITE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue