« All Events
2 PM – Python Object Oriented Programming – Sebastian
October 28, 2023 @ 2:00 pm - 3:00 pm
Today We Did
- Created entire Bird class that flaps birds wings
- Blit random bird to screen each time program is run
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/sat-2-pm-dragon-birdie/-/tree/Sebastian?ref_type=heads - In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Homework: Look at the Github repository to see the setup code I gave you for the Cloud class
- Change the image which is loaded for self.image to correctly load a random cloud image (cloud1, cloud2, cloud3)
- In main.py, make a self.cloud_group the same way we made a bird_group
- Add a cloud object to our cloud group
- Call update on our cloud group so you can see the clouds drawn to the screen