From eab72cafb0ffb04d139beabd34be83a7e6480410 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sun, 13 Aug 2023 08:22:04 +0100 Subject: Use FIRE1 (jump) instead of space This allow full control with the joystick. --- src/game.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/game.c') 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; -- cgit v1.2.3