aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-08-13 08:22:04 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-08-13 08:22:04 +0100
commiteab72cafb0ffb04d139beabd34be83a7e6480410 (patch)
tree7f7a75d72ba0db16dfd7ba4e74f1050194570284 /src/game.c
parente3d0df6e168eb376a06510b915791a7913ce9623 (diff)
downloadgold-mine-run-eab72cafb0ffb04d139beabd34be83a7e6480410.tar.gz
gold-mine-run-eab72cafb0ffb04d139beabd34be83a7e6480410.zip
Use FIRE1 (jump) instead of space
This allow full control with the joystick.
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index 0acd9d9..7d62a40 100644
--- a/src/game.c
+++ b/src/game.c
@@ -205,15 +205,19 @@ static uint8_t run_gameover()
sound_music_pattern(PAT_GAMEOVER);
+ uint8_t ctl = CTL_NONE;
+
/* wait some time, and check if the player wants to continue */
for (uint16_t i = 0; i < 524; i++)
{
if (stage < STAGES_LEN)
{
if (i == 200 || i == 400)
- put_text(68, 105, "PRESS SPACE TO CONTINUE", i == 200 ? 5 : 0);
+ put_text(72, 105, "PRESS JUMP TO CONTINUE", i == 200 ? 5 : 0);
+
+ ctl = control_read();
- if (i > 200 && i < 400 && keys[KEY_SPACE])
+ if (i > 200 && i < 400 && (ctl & CTL_FIRE1))
{
sound_music_pattern(PAT_SILENCE);
return 1;