American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

7PM Python Level 2

May 31, 2019 @ 7:00 pm - 8:00 pm

  1. We reviewed homework:
    1. Made bird can go to the left and right depending on “direction” variable.
  2. We enhanced Bird class:
    1. We moved drawing bird to screen into inside Bird.update() function.
    2. We moved switching bird costume into inside Bird.update() function.
  3.  We enhanced Birdie.py:
    1. We used “enemy_birds” List to simplify the code.
    2. We used for loop to automate creation of the multiple birds.
    3. We used random.randint(..,..) to create random location of the birds.
  4. Homeworks:
    1. When adding more birds to “enemy_birds” variable
      1. Use modular to change direction of the bird whether it is 90 or 270.
    2. In Birdie.py:
      1. add “bird_images” variable and data type is List of String: ‘bird1’, ‘bird2’, ‘bird3’, ‘bird4’

Details

Date:
May 31, 2019
Time:
7:00 pm - 8:00 pm
Event Categories:
,