« All Events
7 PM – Python Game Development – Sebastian
November 27, 2023 @ 7:00 pm - 8:00 pm
Today We Did
- Encapsulated blitting play button, logo, and credit button to their own methods
- Created logic to check mouse position when clicking on play button
- You can always find the code we wrote in class in my Gitlab repository here:
https://gitlab.com/gsugiart/MON-7PM-FlappyBird/-/tree/Sebastian?ref_type=heads - In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
- Homework: Allow the user to switch between game modes by clicking on the play button and crashing on tubes.
- Inside our draw_play_button method, add the one remaining line of code that will start the game
- Think about which method is called when the player collides with a tube, inside this method we need to change the game mode so the user returns to the title screen. Try your best to think about which method this is, and what (singular) line of code we need to write to change the game mode correctly.