Re: Flicking animations...

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Sun, 14 Dec 1997, Mike Fowler wrote:
a bunch of stuff about stomping on his player image and having to draw it
again...

You're doing it wrong.  Use a virtual screen, update your player's
position in it and draw the change to the real screen in one update.
There are lots of ways to do it, the easiest way is to keep a copy of the
background in a sequence, then index into the sequence to "draw" the
player graphic into it, then cut the region of interest out of the
"virtual screen" and display_image it in the right place.  Unless your
player image is HUGE (like bigger than 30x30) you should be able to do it
plenty fast enough for games.  The OidZone Programmer's Reference has a
complete discussion of this technique with line by line source code
explanation.  There are also a number of graphics libraries available on
the offical Euphoria site which will take care of all of this for you.

Michael Packard
Lord Generic Productions
My new game, Runner! is coming along nicely. I'll post a screen shot
later tonite.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu