From b6e128231d681b908344e9be4e006d55e12a79d2 Mon Sep 17 00:00:00 2001 From: Steve Date: Sat, 13 Feb 2016 16:53:56 +0000 Subject: [PATCH] Scroll planet in background more slowly. --- src/battle/battle.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/battle/battle.c b/src/battle/battle.c index 9f44868..d23ae05 100644 --- a/src/battle/battle.c +++ b/src/battle/battle.c @@ -130,6 +130,9 @@ static void doBattle(void) scrollBackground(-ssx * 0.1, -ssy * 0.1); + battle.planet.x -= ssx * 0.05; + battle.planet.y -= ssy * 0.05; + doHud(); doStars(ssx, ssy); @@ -194,7 +197,7 @@ static void draw(void) drawStars(); - blit(battle.planetTexture, battle.planet.x - battle.camera.x, battle.planet.y - battle.camera.y, 1); + blit(battle.planetTexture, battle.planet.x, battle.planet.y, 1); drawEntities();