Re: A92: A quick method to fill rectangles


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

Re: A92: A quick method to fill rectangles




Marcel FONDACCI wrote:
> 
> I am just making a Tunnel-game for fargo II and released the very
> beginning of this game because I had sevral problems :
> Does somebody know a fast method to FILL rectangles with solid BLACK
> in assembly ?

The easiest method if you don't know exactly how LCD mem works is to use
LineLib to fill the rectangle line by line.

> How is it possible to scroll the screen without redrawing all the
> screen ?
> (like a screenshot maybe ???)

The fastest (but not most memory efficient) way is to make a handle to
store all of LCD mem but one row of 30 bytes.  So if you want to scroll
one row up, you would store everything but the first row and then paste
the contents of the handle right into the beginning of LCD mem.  I hope
you get the idea.  If you want to scroll sideways, you have to shift all
bytes (or words) in every row by one bit in appropriate direction.


References: