PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Sprites and tiles in GAPIDraw

Im curious. Are sprites in GAPIDraw, just a series of same sized surfaces each with the proper animation on it attached to one structure of sorts?

Does anyone have some good SpriteEngine GAPIDraw based code they'd be willing to share?

Heck, if even someone has a good GAPIDraw based tile engine that would rock too...I dont feel like reinvinting the wheel to make my little game.

Thanks!

Shane
Codejoy: If you can wait 4 weeks we will have some major cool new stuff being released... Including tile engines, sprite systems and more... An no, it's not GapiDraw 1.10 ... It's something else... :wink:
Codejoy · 06 Mar 2003, 00:38 UTC — hmmm
Im interested, do you have any current docs or anything on said stuff? Im curious...plus id like to see how it might fit into my new game idea...
and starting to learn it wouldnt hurt. Its not GapiDRAW at all then?

-Shane
Basic Tile and Sprite engines are really trivial things to code. I think its well worth figuring out how to do this on your own, there are many tutorials I have found on the subject.

I'd say look into a tutorial from gamedev.net and then if you have any more specific questions I'm sure one of us can answer. If you don't mind waiting, I'm sure Sbl's code will be a great thing to use.
Well I know they are trivial, but still take time nonetheless...time id rather spend on game design and art assets. I am curious about Sbl's code.

-Shane
One of the easiest ways is to just include all the animations in one image, and then when you blit change the source rect based on whatever frame you are on. The only complexity will be in determining the frame, but for most times all you need to do is frame++ or something similar.

The only downside of this method is that the entire animation is loaded at once, which for most cases may not differ with any other method.
Pejo Software - Per · 12 Mar 2003, 23:21 UTC
Will you provide an isometric tile and sprite engine?