gbSpriteDemo

gbSpriteDemo provides a demonstration of displaying, move, resizing and rotating sprite images. Multiple image file formats (bmp/png/gif/jpg) are supported. The capability is provided by a single function which may be easily dropped into other PowerBASIC applicatons.

gbSpriteDemo makes use of two Win32 API, PlgBlt and TransparentBlt. These API allow rotation and the designation of a specific transparency color.

The technique demonstarted by gbSpriteDemo is

gbSpriteDemo is NOT a sprite engine. The technique of generating, animating, and controlling many sprites is very different than the approach used in gbSpriteDemo. Also, gbSpriteDemo does not use/require the alpha channel found in some file formats.

Download (v1.0, 295KB)

To install, just unzip the contents of the distribution file into a folder of its own!

gbSpriteDemo uses a single window, consisting of a toolbar and a graphic control which displays the track and rider.

Feature List

gbSpriteDemo provides a variety of features.

You can put as many icons on the screen as you want ...

And you apply a zoom factor to each sprite ...

And you can show the center, image, and rotation boundaries of a sprite as well ...


Toolbar

All gbSpriteDemo features and settings are accessed through the toolbar buttons.


Keyboard Shortcuts

The following key combinations are available to the user to access gbSpriteDemo features:


Other Comments

Comments and suggestions are welcome!