American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python Game Development – Sebastian

October 24, 2023 @ 6:00 pm - 7:00 pm

Today We Did
  1. Handled collisions for all objects
  2. Created giant fireballs with full functionality
  3. You can always find the code we wrote in class in my Gitlab repository here:
  4. In case you need anything, feel free to email me at
  1. Homework: Inside, add a new method called “player_bird_collision” which will handle collisions between the Player & any Bird.
    1. Create method player_bird_collision (what parameters?)
      1. If either rectangle collided with each other
        1. Set game mode to GAME_LANDING_PAGE
        2. Play pop sound effect
        3. return True
      2. if rectangles didn’t collide
        1. Simply return False
    2. When we handle our group collisions between the bird and player group:
      pygame.sprite.groupcollide(self.player_group, self.bird_group, True, False)
      Pass in our new method
    3. You’ll know everything works if pop sound effects are played when players collide with birds (which ends the game).


October 24, 2023
6:00 pm - 7:00 pm
Event Category:
Verified by MonsterInsights