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:
- Use sprite graphics by customizing the pygame.sprite.Sprite() class.
- Access, modify, update, and draw a list of sprites using pygame .sprite.Group() and its functions.
- Transform an image by applying the pygame.trasform.scale() function to increase or decrease the image’s size in pixels.
- Detect sprite collisions using rect.collidepoint() and similar functions from the Sprite class.
- Remove sprites from a Group using the remove() function.