« All Events
2 PM – Python Object Oriented Programming – Sebastian
December 9, 2023 @ 2:00 pm - 3:00 pm
Today We Did
- Created draw_play_button method
- Created algorithms using math to calculate play button position
- Learned how to get mouse position on screen & detect when mouse is clicked
- 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: Inside our main.py, fill out the new draw_title() method as we described in class.
- (in constructor), load birdie_title.png image
- calculate the x/y for the title to be above the play button
- blit the attribute with loaded birdie_title.png image
- Don’t forget to commit & push your code to the repository as we discussed in class