if map scrolled by single speed, then known at which interval update tiles behind the screen.
Code: Select all
levix++;
VDP_setHorizontalScroll(PLAN_A, levix);
if(levix==256) VDP_setMap(VDP_PLAN_A, levi2, TILE_ATTR_FULL(PAL0, FALSE, FALSE, FALSE, ind2), 16,0);
if(levix==128) VDP_setMap(VDP_PLAN_A, levi3, TILE_ATTR_FULL(PAL0, FALSE, FALSE, FALSE, ind3), 32,0);
if(levix==0) VDP_setMap(VDP_PLAN_A, levi4, TILE_ATTR_FULL(PAL0, FALSE, FALSE, FALSE, ind4), 48,0);