- This event has passed.
4 PM – Python Game Development – Latisha
July 30, 2022 @ 4:00 pm - 5:00 pm
Gamas subs
Today We Did
- We continued with Birdie Dragon project.
- We learned how to make the bird appear from both the left and right edges of the screen.
- We learned about Pygame directions: Left, Right, Up, Down are 180, 0, 90, and 270.
- We learned how to flip images horizontally. We use this when Bird appears from the right side of the screen going to the left.
- We created config.py to store all of the constants.
Homework
- Make the clouds appear from left and right side of the screen. Similar on how we did for Birds. Also, make the clouds less frequent to be created.
- Inside the main.py there are now
self.create_bird_timer = 60
andself.create_cloud_timer = 70
please moved 60 to config.py and name it CREATE_BIRD_DELAY. Same thing for the 70 and name it CREATE_CLOUD_TIMER. - When the cloud appears from the left side of the screen, it suddenly just pops on the screen. Change the code so the cloud can glide from off the screen into the screen.