Today We Did
- Explored the topic of class variables
- Animated our birds to flap when flying
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/mon-7-pm-dragon-birdie/-/tree/MON-7PM-Sebastian?ref_type=heads
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- You have all been creating great commit messages which are very brief in the beginning, then perfectly explain each detail. Keep this up, I’m very proud of everyone for this.
- Homework: As we mentioned in class, you will be making your “create_cloud()” method. Here’s a template to help you get started:
def create_cloud(self):
# self.create_cloud_timer goes down by 1 each time
# if timer reaches 0, reset it, and do all of the following:
# make random y from 0 - 500 for each new cloud, x = 50
# instantiate cloud
# add cloud to group
# where should we call create_cloud()?
pass