Chapter 8, pygame

Questions

Answers

Q1. How do you start pygame?

pygame.init()

Q2. How do objects move in pygame?

Objects only appear to move, but they are actually constantly redrawn

Q3. How is an object redrawn using pygame?

pygame.display.update()

Q4. What is the shorthand used to identify keys in pygame?

pygame.K_keyname

Get Python Projects for Kids now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.