A quick task for you
Q1. How do you start pygame?
pygame.display.set_mode()
pygame.init()
pygame.exit()
pygame.quit
Q2. How do objects move in pygame?
- Objects move using speed
- Objects move using gravity
- Objects move using collision detection
- Objects only appear to move, but they are actually constantly redrawn.
Q3. How is an object redrawn using pygame?
pygame.rerender()
pygame.display.object()
pygame.display.update()
pygame.rect()
Q4. What is the shorthand used to identify keys in pygame?
- pygame.K_keyname
- pygame.keyname
- pygame.keys.K.name
- pygame.key
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.