From 8184a392eba1d82002e2e7f5f1899b6cdd136037 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 29 Apr 2020 15:28:06 -0700 Subject: [PATCH] Interpolate tower background Ok, now THIS takes the cake for "only really noticeable in slowmode", because it only ever moves at 1 pixel per second. And even then, slowmode shouldn't apply on the title screen, so it won't even show up there once I get around to doing that change. --- desktop_version/src/Graphics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 6b600202..811b64af 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -2349,7 +2349,9 @@ void Graphics::drawtowerspikes() void Graphics::drawtowerbackground() { - SDL_BlitSurface(towerbuffer,NULL, backBuffer,NULL); + SDL_BlitSurface(towerbuffer, NULL, towerbuffer_lerp, NULL); + ScrollSurface(towerbuffer_lerp, 0, lerp(0, -map.bscroll)); + SDL_BlitSurface(towerbuffer_lerp,NULL, backBuffer,NULL); } void Graphics::updatetowerbackground()