Scrolling buffer in a tile engine

Started by
11 comments, last by Ryan Clark 19 years, 6 months ago
Quote:Original post by fatjaba
Im still not entirely sure I understand that code, with the drawcolumn part are you not going to end up drawing a lot of columns to the buffer? or are the columns tiles of width 1?

All coodinates are specified in whole tiles, not pixels. Infact the code doesn't deal with pixels at all.
So DrawColumn(3) with a tile width of 16 draws a column of tiles at pixel 48.
Advertisement
Ahh gotcha, in that case you are my new hero. :)
I think that this article on Scrolling with Framing Buffers might be what you're looking for!


Ryan
--Visit the Game Programming Wiki!

This topic is closed to new replies.

Advertisement