« All Events
6 PM – Python Game Development
May 19, 2021 @ 6:00 pm - 7:00 pm
- We went over the homework to randomize the birds and clouds speeds and made the player flap its wings.
- We added a “rect” attribute to the Fireball and the Bird sprites.
- We added logic to detect collision between birds and fireballs.
- We added a score and incremented it when birds get killed.
- I’ve uploaded the source code here.
- Homework:
- Add a rect attribute to the player class.
- Detect collision between the player_group and the bird_group. The player should be removed from the screen when it hits the birds.
- Make the fireball face the correct direction when it’s shooting to the left.
- Make the player move faster than the fastest bird.