American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

6 PM – Python Game Development – Sebastian

September 26, 2023 @ 6:00 pm - 7:00 pm

Today We Did
  1. Added direction functionality for the bird class
  2. You can always find the code we wrote in class in my Gitlab repository here:
    https://gitlab.com/gsugiart/tue-6-pm-dragon-birdie/-/tree/TUE-6PM-Sebastian

  3. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Homework: Inside your create_bird() function in main.py, try to make birds spawn in both the left and right side of the screen.
    1. Generate a random direction (either LEFT or RIGHT global variables, use our list in config.py!)
    2. If the direction is LEFT, set x to WIDTH global variable (bird spawns on right side)
    3. If the direction is RIGHT, set x to 0 (bird spawns on left side)

Details

Date:
September 26, 2023
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights