Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fourspriter: Alternate Version
#45
slenkar Wrote:in the demo, why is there a bunch of black dots in the background,
and how do they not get overdrawn by the sprites?
like how do they not get wiped off the screen

also
did this ever get added as an official library? its seems very good


Fourspriter saves the background before it draws a sprite on it, and then replaces this background to erase the sprite. This means you can use it with a background without worrying about the background being destroyed.

Like this: <!-- m --><a class="postlink" href="http://britlion.googlepages.com/Sprity.z80">http://britlion.googlepages.com/Sprity.z80</a><!-- m -->
(break in to the basic, if you dare! [The standard routines here aren't interrupt driven])

Yes, this is in the library just #include <fourspriter.bas> to get it - but the functions have been renamed and redescribed when Boriel did some rewrites in it. You should have a look at fourspriter.bas in the library directory where you installed zxb to get the usage; it's not well documented, and I think it's based on the oldest version of fourspriter.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)