Save a new portion of the background image
Listing 8 saves a square area of the background image at the new location of the ball:
Listing 8. Save a new portion of the background image.
blit(buffer,smallBuffer,
x-radius-1,y-radius-1,
0,0,
radius*2+2,radius*2+2);
|