So I'm messing about trying to make a 2.5D racing game. I have got the road line scrolling working but there are a couple of issues. In the text code below I'm just offsetting the road by one pixel but it seems to only offset every other pixel and it looks to be shifting it more than one pixel. What am I doing wrong? It looks 'interlaced'.
Code: Select all
int main( )
{
u16 iVertLine = 96;
u16 iScrollAmount = 1;
s16 iLinesToScroll = 124;
VDP_setScrollingMode(HSCROLL_LINE, VSCROLL_PLANE);
VDP_drawImage(VDP_PLAN_A, &road, 0, 0);
VDP_drawText("ROAD SCROLLING TEST", 8, 25);
VDP_setHorizontalScrollLine(PLAN_A, iVertLine, iScrollAmount, iLinesToScroll, 0);
return 0;
}
ANOTHER EDIT: I think pointers got me again, hence why full screen scrolling works
ANOTHER ANOTHER EDIT: Nope... thought I'd solved it but still doing it...