From 8fa8f5b8182d520006bf3476bc4e4a25a6f27d4f Mon Sep 17 00:00:00 2001 From: rodrigodornelles Date: Wed, 1 Nov 2023 13:23:13 -0300 Subject: [PATCH] chore: add earthquake to cockcount --- src/game.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game.c b/src/game.c index 3fdd714..4af98a2 100644 --- a/src/game.c +++ b/src/game.c @@ -316,8 +316,8 @@ void game_loop(void) /** draw number of coocks **/ roosters_total = roosters_count; - spr = oam_spr((27 * 8), (1 * 8) -1, digit_lockup[1][roosters_count], 3, spr); - spr = oam_spr((28 * 8), (1 * 8) -1, digit_lockup[0][roosters_count], 3, spr); + spr = oam_spr((27 * 8) - eqy, (1 * 8) -1 - eqx, digit_lockup[1][roosters_count], 3, spr); + spr = oam_spr((28 * 8) + eqx, (1 * 8) -1 + eqy, digit_lockup[0][roosters_count], 3, spr); /* put ret edges **/ oam_edge(MIN_ARENA_X, MIN_ARENA_Y, MAX_ARENA_X, MAX_ARENA_Y);