mirror of
https://github.com/dwsJason/xrick2gs.git
synced 2024-09-28 05:56:40 +00:00
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
This commit is contained in:
parent
ad2b367a78
commit
011e235517
@ -331,7 +331,7 @@ draw_sprite(U8 number, U16 x, U16 y)
|
|||||||
{
|
{
|
||||||
int frameNo = number;
|
int frameNo = number;
|
||||||
|
|
||||||
if (y >= (200-22))
|
if (y >= (200-8))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (x >= 320)
|
if (x >= 320)
|
||||||
@ -363,7 +363,7 @@ draw_sprite2(U8 number, U16 x, U16 y, U8 front)
|
|||||||
|
|
||||||
frameNo<<=1;
|
frameNo<<=1;
|
||||||
|
|
||||||
x -= DRAW_XYMAP_SCRLEFT;
|
x -= (DRAW_XYMAP_SCRLEFT-1);
|
||||||
y -= (DRAW_XYMAP_SCRTOP-8);
|
y -= (DRAW_XYMAP_SCRTOP-8);
|
||||||
|
|
||||||
if (x & 1)
|
if (x & 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user