Allow credits to be exited by pressing Escape.
This commit is contained in:
parent
2e7d0bb874
commit
a9fb850f05
|
@ -135,8 +135,8 @@ static void loadCredits(void)
|
||||||
|
|
||||||
limitTextWidth(0);
|
limitTextWidth(0);
|
||||||
|
|
||||||
/* the music that plays over the credits is 2m 44s, so scroll credits roughly inline with that */
|
/* the music that plays over the credits is 2m 44s, so scroll credits roughly inline with that (plus 2 seconds) */
|
||||||
timeout = ((2 * 60) + 55) * FPS;
|
timeout = ((2 * 60) + 46) * FPS;
|
||||||
|
|
||||||
creditSpeed = y;
|
creditSpeed = y;
|
||||||
creditSpeed /= timeout;
|
creditSpeed /= timeout;
|
||||||
|
@ -149,7 +149,7 @@ static void handleKeyboard(void)
|
||||||
{
|
{
|
||||||
if (app.keyboard[SDL_SCANCODE_ESCAPE])
|
if (app.keyboard[SDL_SCANCODE_ESCAPE])
|
||||||
{
|
{
|
||||||
|
timeout = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue