« All Events
6 PM – Python Game Development – Sebastian
September 19, 2023 @ 6:00 pm - 7:00 pm
Today We Did
- Reviewed how Gitlab works & fixed problems with pushing / pulling / committing
- Created multiple birds each time the create_bird_timer finishes
- Place each new bird in a random y coordinate
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/tue-6-pm-dragon-birdie/-/tree/TUE-6PM-Sebastian
- In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Homework: Recall everything we’ve done for our Bird class & objects so far. Try doing the same thing for a new Cloud class, with the main difference being the cloud speed is 6, the cloud image can be either “cloud1.png”, “cloud2.png”, or “cloud3.png”, and the create_cloud_timer is 80.
- Start with creating your new Cloud class & ensure all the code is accurate in there
- Then we can make the cloud_group and create_cloud_timer (set to 80) in the constructor in the file main.py
- Next we can fill out the create_cloud method underneath our create_bird method, make sure it reflects the different timer!
- Finally we can call create_cloud() and update our cloud group in the game_loop.
- Remember, your clouds won’t be drawn unless you update them in the game loop! (I have a feeling this might be easily forgotten).