What would be the best way to create a looping scrolling foreground?
Say I have a large BMP file of a map, and I would want to scroll it, for example on the A Plane. What would be the best way to do it?
I'm trying to use the A plane to draw the "pipes" in my flappy bird game, so eventually I would also like to implement colission detection. But that's for later.
I've tried drawing a BMP file to APLAN, but if it's too large it'll start to glitch (out of memory?).
Then I've tried the following:
Code: Select all
if (lscroll > 0) VDP_setHorizontalScroll(APLAN, lscroll);
lscroll-=8;
So i'm trying to use this as a starting point. I would love to use some larger maps though.
I've been searching these forums as well, and I did stumble upon some posts about updating the tiles, but I'm not sure how to start with that.
Thanks in advance.