How can I use sprites?

Previous Graphics and Display Next

Q: Do you know how I can use sprites with TIGCC?
A: Another common question. The answer depends on the size of the sprite. If your sprite is not wider than 32 pixels (which is likely), then you can now use the sprites.h header file. This header file defines fast functions which work with sprites (including masked sprites). The only limitation is that the sprite must not be wider than 32 pixels (the height is not limited).

What to do if you want sprites wider than 32 pixels, and don't want to use DoorsOS? The answer depends on what the usage of this sprite will be. If you don't need fast action, the built-in function BitmapPut may be good enough. If you need a very fast sprite routine, you may be better off using the ExtGraph library by the TI-Chess Team.