American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development

January 13, 2021 @ 7:00 pm - 8:00 pm

  • We went over the homework and finished adding the “Bird” class.
  • We modified “Bird” to move and added a Birdie method to create an additional Bird at a random location.
  • We refactored the configurations/constants to a “config.py” file.
  • We implemented a technique to slow down the number of birds created by spawning a new bird after 40 frames.
  • You can find the current project files here.
  • Homework:
    • Reset the `bird_creation_timer` to the original value after creating a new bird, so that a new bird is created about once every second.
    • We currently are only loading one bird image every time a bird is created.  Instead, select a random bird image using random.choice.  First create a list of possible bird filenames.  Then use random.choice to pick a random name and then load it when a new bird is created.

Details

Date:
January 13, 2021
Time:
7:00 pm - 8:00 pm
Event Categories:
,