Scrolling parts of screen
Posted: March 31st, 2019, 17:43
Hello guys,
So I actually started programming a game/tech demo.
I am using Zoranc's old C compiler.
I got a map drawing as background and a sprite in front of it.
But now I need to get scrolling per scanline working.
First the top part of the map, which is 21 pixels, needs to be scrolled separately from the bottom. But I need control over the scrolling per scanline on the bottom part. I am starting to doubt if this is even possible with the built in scroll registers.
So my question actually is if you can run code per scan line. I did it on the Game Boy, but of course this is a different system and I can't seem to find a counter which can help me achieve what I want.
The best counter I could find is the PRC_CNT, but this one seems not accurate enough.
Hopefully someone can shed some light on this issue
Thanks in advance
~pikpol
So I actually started programming a game/tech demo.
I am using Zoranc's old C compiler.
I got a map drawing as background and a sprite in front of it.
But now I need to get scrolling per scanline working.
First the top part of the map, which is 21 pixels, needs to be scrolled separately from the bottom. But I need control over the scrolling per scanline on the bottom part. I am starting to doubt if this is even possible with the built in scroll registers.
So my question actually is if you can run code per scan line. I did it on the Game Boy, but of course this is a different system and I can't seem to find a counter which can help me achieve what I want.
The best counter I could find is the PRC_CNT, but this one seems not accurate enough.
Hopefully someone can shed some light on this issue
Thanks in advance
~pikpol