« All Events
7 PM – Python Game Development – Sebastian
July 24, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Created bird class with constructor and update method
- Created sprite group to add instance of bird
- Added create_bird() method which creates new bird objects according to our timer
- Code from main.py:
- Code from bird.py:
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Be sure to create a good commit message and push your homework by next Sunday
- Homework:
- Make a class named Cloud in a file called cloud.py similar to the one we made for Bird. Use the cloud1.png image. You don’t need to scale this picture. Make it move to the right.
- In main.py, make a new group called self.cloud_group. Make an instance of the new cloud and add it to the group (where should this instance be put? Inside the constructor or the game loop?). Then call update for the cloud group in the game loop.