aboutsummaryrefslogtreecommitdiff
path: root/src/menu.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/menu.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/menu.c')
-rw-r--r--src/menu.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/menu.c b/src/menu.c
index 5a459e8..d2de630 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -26,7 +26,7 @@ static void render_menu()
Rect dst = { 80, 45, 160, 38 };
blit(binary_title_start, &dst);
- put_text(84, 110, "PRESS SPACE TO PLAY", 1);
+ put_text(88, 110, "PRESS JUMP TO PLAY", 1);
put_text(64, 140, "CODE, GRAPHICS AND SOUND", 2);
put_text(96, 150, "JUAN J. MARTINEZ", 3);
@@ -88,9 +88,9 @@ uint8_t run_menu()
if (keys[KEY_ESC])
return 0;
- if (keys[KEY_SPACE] || (ctl & CTL_FIRE1))
+ if (ctl & CTL_FIRE1)
{
- while (keys[KEY_SPACE] || (ctl & CTL_FIRE1))
+ while (ctl & CTL_FIRE1)
{
ctl = control_read();
wait_vsync();
@@ -100,7 +100,7 @@ uint8_t run_menu()
for (uint8_t i = 0; i < 32; i++)
{
- put_text(84, 110, "PRESS SPACE TO PLAY", i & 2 ? 5 : 0);
+ put_text(88, 110, "PRESS JUMP TO PLAY", i & 2 ? 5 : 0);
wait_vsync();
}
wait_frames(96);
@@ -137,7 +137,7 @@ uint8_t run_menu()
if (wait == 80)
wait = 0;
- put_text(84, 110, "PRESS SPACE TO PLAY", wait ? 0 : 1);
+ put_text(88, 110, "PRESS JUMP TO PLAY", wait ? 0 : 1);
wait_vsync();
}
}