Skip to content
Techniques & Technology

Sprites

Hardware-accelerated game objects

Sprites are hardware-supported graphical objects that move independently of the background, fundamental to 2D game graphics across platforms.

C64NESAmigamega-drive graphicshardware2d 1977–present

Overview

Sprites are graphical objects handled specially by video hardware—characters, projectiles, and items that move without affecting the background. Hardware sprites meant the CPU didn’t need to erase and redraw moving objects each frame; the video chip handled compositing. Each platform had different sprite capabilities: size, colour, number limits.

Fast facts

  • Definition: hardware-supported moveable graphics.
  • Advantage: CPU offload, no background corruption.
  • Limitations: per-platform count, size, colour.
  • C64: 8 sprites, 24x21 pixels, multicolour or hires.
  • NES: 64 sprites in OAM, 8 per scanline limit.

Platform comparison

Sprite capabilities varied:

PlatformSpritesSizeColours
C64824x213+1 or 1+1
NES64 (8/line)8x8 or 8x163+1
Amiga816px widevariable
Mega Drive80variable15+1

Programming sprites

Common sprite operations:

  • Position: set X/Y coordinates.
  • Pointer: which graphic to display.
  • Enable: turn sprite on/off.
  • Collision: detect overlaps.
  • Priority: ordering with background.

See also