Re: A86: Tile Maps


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

Re: A86: Tile Maps




In a side-scroller type (like Sqrxz or Mario), you don't have enough time
(processor wise) to redraw the screen every frame.  The easiest way to do
this, IMHO, is to use an aligned sprite routine and draw the map
once...like the code I posted earlier.  After that, you need to shfit all
the memory left or right to scroll it, and redraw the pixel edge that is
left behind.  Redrawing the pixel edge is much harder than shifting the
memory, though.  See the Sqrxz source as an example of this.  To scroll up
and down, you need to ldir and lddr the screen memory row by row.  Then
again, you have to fill in the pixel edge that is left.

Good luck, these are the easiest parts of the game!

At 04:02 AM 8/6/98 EDT, you wrote:
>
>Does any one have a map drawing routine that will allow for tile
scrolling? If
>not, how should I go about writting a routine to draw the section of the
map I
>need. The best way I can describe what I need is the map srcolling in
>boulderdash.
>
>Thanks,
>Mikel Blanchard
>http://MacrossSoftware.home.ml.org/
>

--
David Phillips
mailto:electrum@tfs.net
ICQ: 13811951
AOL/AIM: electrum32


References: