American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Python Game Development – Darin

March 25 @ 5:00 pm - 6:00 pm

What We Did Today:

  1. 1. Continuing off of the previous homework, we made our birds image orient the opposite way when coming from the right to the left
    2. We made the player bird change image orientation using the flip() method depending on if we are directed towards the right or the left
    3. We understood more on why we couldn't just flip the image directly for all the images in the list for the player, but instead we need to make two lists for right and left images for the player to make it change orientations accordingly


  • # for your homework, I want you to add in the code that #creates a red box on the screen that follows the player
    # inside of init at the end,
    # add this code ->
    self.rect = pygame.Rect(self.x, self.y, self.image.get_width(), self.image. get_height())
    # add these code at the end of update() BEFORE you blit
    self.rect.x = self.x
    self.rect.y = self.y
    pygame.draw.rect(self.screen, (255, 0, 0), self.rect)
    # do this for both the birds and the player.
    # So all you are doing is copy pasting this code, and try to see what each line of this newly added code does
    # We will go over this in more detail on Monday!

    when you are done submitting this, by Sunday night I will leave comments to your homework so you will need to update your project from the upper left, and if it asks you to merge, merge yours


If you have any questions, feel free to email me at


March 25
5:00 pm - 6:00 pm
Event Categories:
Verified by MonsterInsights