American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python Game Development

April 14, 2021 @ 6:00 pm - 7:00 pm

  • We went over the homework to slow down the creation of clouds.
  • We reviewed the code and the game loop.
  • We added a direction to the Bird, and flipped it.
  • I’ve uploaded the code here.
  • Homework
    • We want the clouds to move both to the right and the left.  Start by creating a new “direction” attribute in the Cloud class, similar to what we did in the Bird class.
    • Then modify the create_cloud function to pass in a random direction.
    • Finally make sure clouds that move to the left start on the left side of the screen.  You don’t need to flip the clouds.

Details

Date:
April 14, 2021
Time:
6:00 pm - 7:00 pm
Event Category: