aboutsummaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-06-20 23:08:22 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-06-20 23:08:22 +0100
commitb4dd0c8956f1c81836e4f3020efe2f85b3d91902 (patch)
tree658f08795c5774df8e0ee646e5212ffa82e09ba3 /src/game.c
parentd489b6ef92ae9f61bbceb5f594026a51e71538f2 (diff)
downloadgold-mine-run-b4dd0c8956f1c81836e4f3020efe2f85b3d91902.tar.gz
gold-mine-run-b4dd0c8956f1c81836e4f3020efe2f85b3d91902.zip
Add menu screen (WIP)
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index b80090a..cdb0c07 100644
--- a/src/game.c
+++ b/src/game.c
@@ -105,6 +105,10 @@ void run_game()
wait_vsync();
blit_update();
}
+
+ /* wait for ESC to be release */
+ while (keys[KEY_ESC])
+ wait_vsync();
}
void add_score(uint8_t v)