American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM – Python Game Development

March 27, 2021 @ 1:00 pm - 2:00 pm

  • We went over the homework and fixed the offset for the cloud.
  • We added a rect attribute for the Bird and Fireball and drew them on the screen.
  • We added logic to detect collisions between the bird and fireball.
  • I’ve uploaded the source code here.
  • Homework:
    • Add rect attribute to the “Player” class and then draw it on the screen and make sure the rect is in sync with the player.
    • Then add some logic to detect a collision between the player and the bird, so the player dies when it gets hit by a bird.

Details

Date:
March 27, 2021
Time:
1:00 pm - 2:00 pm