Drawing Images

This how to article shows you how to draw an image.

Pascal
Drawing an image can be done very easily by calling DrawSprite or DrawBitmap. Sprite should be used if you are moving an image frequently. Sprite contains its coordinates, so it is easier to manage the data. Bitmap loading can be done in the Game Resources.

To create a sprite, you will need to call CreateSprite routine which will return a new sprite. Therefore, the following code will create and draw a sprite.

The following code will draw a bitmap onto the screen.