Sprite

OBJ, MOB or BOB


A sprite is a image drawn at a position on screen. Changing the position moves the image around and by using a image of a spaceship we have the start of a good space shooter. To make the image to fit the position correctly we might also need a offset position of the image. It tells us what pixel in the image will be at the position on the screen. The image itself provides the size of the sprite.

Animation is done by changing the image over time. Each image in a animation is called a frame and the speed of an animation is the frames per seconds it changes.

The sprite can be rotated or scaled but it will make collision detection harder.

Reference: