Interactive programs give us this sense of control in an app or game, because we can move or interact with a character or other object in the program.

Click and Drag

SmileyPop

Summary

Programming the cool apps in this chapter has given us the skills to do the following:

  1. Use sprite graphics by customizing the pygame.sprite.Sprite() class.
  2. Access, modify, update, and draw a list of sprites using pygame .sprite.Group() and its functions.
  3. Transform an image by applying the pygame.trasform.scale() function to increase or decrease the image’s size in pixels.
  4. Detect sprite collisions using rect.collidepoint() and similar functions from the Sprite class.
  5. Remove sprites from a Group using the remove() function.

Challenges