American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

1 PM – Python Game Development

January 23, 2021 @ 1:00 pm - 2:00 pm

  • We went over the homework to add bird3 which moves diagonally to the bottom right corner.
  • We added a new “bird.py” file for the Bird sprite, and created a bird4 using this class.  We learned about how to import Bird and configure PyCharm to know the location of the “Sources Root”.
  • We add a “bird_group” using the pygame.sprite “Group” class to keep track and update all our birds.
  • I’ve uploaded the source code here.
  • Homework:
    • Create another method “create_bird” inside the “Birdie” (not “Bird”) class.  In this method, create another “Bird” object and add it to the “bird_group” sprite Group object.  Make sure that you’re creating the “bird_group” sprite Group object inside the Birdie.__init__ method, and calling the “bird_group.update()” inside the game loop.

Details

Date:
January 23, 2021
Time:
1:00 pm - 2:00 pm
Event Categories:
,