American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

2 PM – Python Object Oriented Programming – Sebastian

December 9, 2023 @ 2:00 pm - 3:00 pm

Today We Did
  1. Created draw_play_button method
  2. Created algorithms using math to calculate play button position
  3. Learned how to get mouse position on screen & detect when mouse is clicked
  4. 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
  5. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Homework: Inside our main.py, fill out the new draw_title() method as we described in class.
    1. (in constructor), load birdie_title.png image
    2. calculate the x/y for the title to be above the play button
    3. blit the attribute with loaded birdie_title.png image
  2. Don’t forget to commit & push your code to the repository as we discussed in class

Details

Date:
December 9, 2023
Time:
2:00 pm - 3:00 pm
Event Categories:
,
Verified by MonsterInsights