tags:

views:

38

answers:

1

how do 2d sprites work

+1  A: 

A mask is used to black out the part of the background image that the sprite obscures, then the sprite image itself is or-blitted to the canvas, and the new image is displayed. Various algorithms exist for limiting display of the new image to only what has actually changed, but the basics remain the same.

Ignacio Vazquez-Abrams