diff --git a/src/battle/battle.c b/src/battle/battle.c index c7e8af6..03c2c03 100644 --- a/src/battle/battle.c +++ b/src/battle/battle.c @@ -105,9 +105,6 @@ static void doBattle(void) { if (player != NULL) { - battle.camera.x = player->x - (SCREEN_WIDTH / 2); - battle.camera.y = player->y - (SCREEN_HEIGHT / 2); - ssx = player->dx; ssy = player->dy; } @@ -160,6 +157,9 @@ static void draw(void) { prepareScene(); + battle.camera.x = player->x - (SCREEN_WIDTH / 2); + battle.camera.y = player->y - (SCREEN_HEIGHT / 2); + drawBackground(battle.background); drawStars();