Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with scroll.bas library
#1
Team,

When I use the library, the screen scrolls, however the colour of the objects bleeds to the background colour.
Is there a fix for this and also the x,y,x1,y1 cordinates of the scroll window don't seem correct.

Thanks for looking into this as I am desperate for a scroll function. thx
Reply
#2
Which library exactly?

Remember that on the spectrum the colour and the pixels are in completely separate grids - the colour is in 8x8 squares. So unless you scroll 8 pixels at a time, you have a problem aligning to the colour grid. This is why many spectrum games are very single colour in the play area.

It wouldn't be too hard to add a colour scroll routine to the library; but it would only work with Character Square size movements.
Reply
#3
(04-08-2020, 08:28 PM)britlion Wrote: Which library exactly?

Remember that on the spectrum the colour and the pixels are in completely separate grids - the colour is in 8x8 squares. So unless you scroll 8 pixels at a time, you have a problem aligning to the colour grid. This is why many spectrum games are very single colour in the play area.

It wouldn't be too hard to add a colour scroll routine to the library; but it would only work with Character Square size movements.
the scroll.bas library found under zbasic library, running the scroll.bas in the examples folder.
Reply
#4
(04-09-2020, 01:42 PM)Andy1966uk Wrote:
(04-08-2020, 08:28 PM)britlion Wrote: Which library exactly?

Remember that on the spectrum the colour and the pixels are in completely separate grids - the colour is in 8x8 squares. So unless you scroll 8 pixels at a time, you have a problem aligning to the colour grid. This is why many spectrum games are very single colour in the play area.

It wouldn't be too hard to add a colour scroll routine to the library; but it would only work with Character Square size movements.
the scroll.bas library found under zbasic library, running the scroll.bas in the examples folder.

Can you post an example, please?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)