[A83] Re: Sprites with clipping


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

[A83] Re: Sprites with clipping




Umm, how would that possibly faster than simply not displaying the part
that's off the screen? You even have to do a special findpixel to account
for negative numbers... Where would you get 960 contiguous bytes, either?

As mentioned earlier, both of Hideaki's routines are quite fast -- unless
you're writing an app. You can't use them then, because they self modify
themselves extensively.

-----Original Message-----
From: assembly-83-bounce@lists.ticalc.org
[mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Joe Pemberton
Sent: Monday, July 23, 2001 11:51 AM
To: assembly-83@lists.ticalc.org
Subject: [A83] Re: Sprites with clipping



If you want the sprites to scroll vertically, I'm guessing you don't want
the sprites to disapear once parts of them go offscreen, yes?  Of course,
since you're asking for a clipping routine.  But you might also consider
making a 80x12 byte buffer and writing a modified version of fastcopy to
only display the middle of the buffer and leave the top and bottom 8x12
bytes alone.  These parts would be where the excess 8x8 sprites scroll into
then dissapear.  The only problem would be the buffer would take up  960
bytes, but if you're going for speed I would say go with that.




References: