American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development – Sebastian

November 27, 2023 @ 7:00 pm - 8:00 pm

Today We Did
  1. Encapsulated blitting play button, logo, and credit button to their own methods
  2. Created logic to check mouse position when clicking on play button
  3. 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
  4. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Homework: Allow the user to switch between game modes by clicking on the play button and crashing on tubes.
    1. Inside our draw_play_button method, add the one remaining line of code that will start the game
    2. 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.

Details

Date:
November 27, 2023
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights