Further challenge updates.

This commit is contained in:
Steve 2016-02-27 18:12:18 +00:00
parent f153383f9e
commit 660bb57bb0
4 changed files with 7 additions and 5 deletions

View File

@ -181,7 +181,10 @@ static void drawChallenges(void)
static void handleKeyboard(void) static void handleKeyboard(void)
{ {
if (app.keyboard[SDL_SCANCODE_ESCAPE])
{
initTitle();
}
} }
static void startChallengeMission(void) static void startChallengeMission(void)

View File

@ -40,6 +40,7 @@ extern void drawWidgets(char *groupName);
extern int collision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2); extern int collision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2);
extern Widget *getWidget(const char *name, const char *group); extern Widget *getWidget(const char *name, const char *group);
extern void saveGame(void); extern void saveGame(void);
extern void initTitle(void);
extern App app; extern App app;
extern Battle battle; extern Battle battle;

View File

@ -33,14 +33,14 @@ static char descriptionBuffer[MAX_DESCRIPTION_LENGTH];
static char *challengeDescription[] = { static char *challengeDescription[] = {
"Retain at least %d%% armour", "Retain at least %d%% armour",
"Finish mission in %d seconds or less", "Complete challenge in %d seconds or less",
"Attain a %d%% hit accuracy", "Attain a %d%% hit accuracy",
"Do not lose any team mates", "Do not lose any team mates",
"Do not lose more than 1 team mate", "Do not lose more than 1 team mate",
"Do not lose more than %d team mates", "Do not lose more than %d team mates",
"Take down %d enemy targets", "Take down %d enemy targets",
"Disable %d or more enemy fighters", "Disable %d or more enemy fighters",
"Finish mission in %d minutes or less" "Complete challenge in %d minutes or less"
}; };
void initChallenges(void) void initChallenges(void)

View File

@ -217,8 +217,6 @@ static void options(void)
static void returnFromOptions(void) static void returnFromOptions(void)
{ {
showingOptions = 0; showingOptions = 0;
selectWidget("newGame", "title");
} }
static void quit(void) static void quit(void)