American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development

March 10, 2021 @ 7:00 pm - 8:00 pm

  • We added a rect attribute for both the fireballs and the birds.
  • We added logic to handle collisions between fireballs and birds, so the birds get killed.
  • I’ve uploaded the source code here.
  • Homework:
    • Add logic to handle when the player collides with a bird.  The player should die when it hits a bird, so the player should disappear when it hits a bird.  You’ll need to add a rect attribute to the player class and also some additional logic for another pygame.sprite.groupcollide.
    • Bonus: If you’re finished with this, add a “score” attribute to the Birdie class and increase the score when the player kills more birds with the fireballs.

Details

Date:
March 10, 2021
Time:
7:00 pm - 8:00 pm
Event Category: