Re: A86: NOT Question on tile maps :-)


[Prev][Next][Index][Thread]

Re: A86: NOT Question on tile maps :-)




At 17:31 1999-01-29 -0800, you wrote:
>
>why do you need pixel-resolution smooth scrolling?
>if you scroll in 4-pixel steps you can scroll a screen much faster using
>rld and rrd and you can store 2 preshifted sprite images for everything
>that has to move.  (well, sprites don't matter that much)

Yeah sure, but pixel-smooth scrolling looks better. Also, if the sprite
("you") moves one pixel to the right, and if at every fourth pixel, the screen
scrolls, it would look stupid - you would move forward four pixels, then
back four pixels, forward four pixels, back four pixels etc.

>lookup shift tables?

Yeah. If you want to shift 5 steps to the left, instead of looping
5 shifts (or repeating 5 shifts), you could have a 256*8 byte lookup
table. Implemented in a clever way, it's _fast_ - trust me, I know :)

//Jimmy Mårdell

E-mail: yarin@acc.umu.se
Homepage: http://www.acc.umu.se/~yarin/



References: