From 011e235517481e6094b99e67942dff6947263157 Mon Sep 17 00:00:00 2001 From: dwsJason Date: Sun, 2 Sep 2018 19:50:32 -0400 Subject: [PATCH] Nudge Sprites over 1 pixel to the left, to get them secret bricks to line up proper with the background, and fix the sprite erase. It would be nice to know why we have to do this, but perhaps it's something to do with Mr. Sprite --- src/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/draw.c b/src/draw.c index c31e238..0b983ec 100644 --- a/src/draw.c +++ b/src/draw.c @@ -331,7 +331,7 @@ draw_sprite(U8 number, U16 x, U16 y) { int frameNo = number; - if (y >= (200-22)) + if (y >= (200-8)) return; if (x >= 320) @@ -363,7 +363,7 @@ draw_sprite2(U8 number, U16 x, U16 y, U8 front) frameNo<<=1; - x -= DRAW_XYMAP_SCRLEFT; + x -= (DRAW_XYMAP_SCRLEFT-1); y -= (DRAW_XYMAP_SCRTOP-8); if (x & 1)