American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5 PM – Python Game Development – Darin

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

What We Did Today:

  1. Made our code to create birds a bit cleaner using a method called create_bird() that uses a timer to create the birds (since the create_bird() method is called inside of a while loop in game_loop)
  2. Made our birds spawn randomly on the y axis
  3. Made different birds spawn using f”” formatting where we changed the bird  type number
  4. Emphasized how the bird update should come after the cloud update so that the birds go in front of the clouds
  5. Started on the code to change the suffix (A or B) to make the bird start flapping its wings (we will complete this next week!)


  • For your homework, make a new method in called create_cloud() which does the same thing as create_bird(), where the cloud object creation and adding happens inside of the create_cloud() method
  • You will have to make a timer called self.create_cloud_timer inside __init__ , and make the clouds appear at random on the y axis.
    For the bird timer, set its value to 80.
  • Change the cloud number that spawns between cloud1.png, cloud2.png, and cloud3.png.
    You do not need a for loop for this.
  • NOW, after all of the above, change the code so that the cloud spawns from the right and travels to the left. (try to figure out how this works)Good Luck.

    Also, 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 4
5:00 pm - 6:00 pm
Event Categories:
Verified by MonsterInsights