From 3f7b9d71c75360207dd05b8cb67131b08f2c18ca Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 29 Jun 2023 23:12:34 +0100 Subject: Move wait_time to vga --- src/game.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/game.c') diff --git a/src/game.c b/src/game.c index 0113fe1..b45989b 100644 --- a/src/game.c +++ b/src/game.c @@ -42,13 +42,6 @@ static uint8_t pickaxe; static uint8_t gameover; static uint8_t pause; -static void wait_time(uint16_t frames) -{ - /* wait some time */ - for (uint16_t i = 0; i < frames; i++) - wait_vsync(); -} - static void hud_render() { char b[32]; @@ -117,7 +110,7 @@ static void run_gameover() blit_update(); /* wait some time */ - wait_time(255); + wait_frames(255); } void run_game() @@ -148,7 +141,7 @@ void run_game() blit_update(); /* wait some time */ - wait_time(96); + wait_frames(96); /* erase the READY? text */ map_render(); -- cgit v1.2.3