diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-08-13 08:22:04 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-08-13 08:22:04 +0100 |
commit | eab72cafb0ffb04d139beabd34be83a7e6480410 (patch) | |
tree | 7f7a75d72ba0db16dfd7ba4e74f1050194570284 /src/game.c | |
parent | e3d0df6e168eb376a06510b915791a7913ce9623 (diff) | |
download | gold-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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; |