0

Wings in Action

Falling is no fun! Let’s give our bird some power. When we press the SPACE bar, we want the bird to skip upwards.

The Jump Logic

To go UP in Pygame, we subtract from velocity (or set it to a negative number)!

🎯
🎯

Level Goal

Make the bird jump up by setting velocity to -8 when the SPACE key is pressed.

Logic Lab: python.py
0/3
1234
for event in pygame.event.get(): if event.type == pygame.: if event.key == pygame.: bird_velocity =

Choose for blank #1