[A83] Re: sprite routine


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

[A83] Re: sprite routine




http://www.ticalc.org/pub/86/asm/source/repton.asm

As the comment at the top indicates, it's not the best, but since you're
asking about a sprite routine, I doubt you could even beat Shepcar's poorly
written code :)

Unfortunately for you, there is no example of the sprite data.  So you'll
either have to dissassemble the program to get it (would be quite easy to do
in VTI), or study the routine and figure out how it works (try commenting it
fully).

Another solution is to modify an 8x8 sprite routine to be 8x12, and call it
twice.  Though if you aren't using masked sprites already and draw off
pixels instead of leaving them transparent, this won't work.  It's usually
easier, although not necessarily as efficient, to use an 8x8 or an 8xN
sprite routine, and call it once for each set of 8 horizontal pixels.
Writing an arbitrary sized sprite routine, especially one that does
clipping, takes a bit of doing.

> Does anybody have a sprite routine that can display 12x12 sprites (or
9x9)?
>
> It would be nice to hear from you.





Follow-Ups: References: