American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

3PM Python Level 2

June 15, 2019 @ 3:00 pm - 4:00 pm

  1. We reviewed last week homework.
  2. We introduced the concept of Object Oriented Programming
    1. We created class Bird in a file called bird.py
  3. We moved a lot of code duplication in main.py into bird.py file.
  4. We created instances of class Bird in main.py.
  5. Homeworks:
    1. Enhance class Bird
      1. When the direction is 90, make the bird move from x:0 towards the right.
      2. When the direction is 270, make the bird move from x:WIDTH towards left. Flip the bird image.
      3. Make the bird flap by switching from imageA to imageB and viceversa.

Details

Date:
June 15, 2019
Time:
3:00 pm - 4:00 pm
Event Categories:
,