Login
Back to forumSee the full topicGo to last reply

Posted By

Csabo
on 2008-11-04
22:18:41
 Re: Software sprites_Archon?

You are right about the algorithm. It is as easy as you described! Basically in every frame:

1) Restore saved area
2) Move sprite to new coordinates
3) Save area under sprite
4) Draw (and optionally mask) the sprite

The implementation details will vary depending on a lot of factors (e.g. are you in graphics mode or character mode, are you using double buffering, etc. ). If you need a working example, Quadrillion has a 8x8 pixel multicolor soft sprite and the source is up.



Back to top


Copyright © Plus/4 World Team, 2001-2024