American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python Game Development

June 19, 2020 @ 6:00 pm - 7:00 pm

  1. Homework
    1. Inside Player class
      1. Create 2 more images in __init__:
        1. rename imageA to imageA_right.
        2. rename imageB to imageB_right.
        3. imageA_left. Flip the imageA_right and assign it to imageA_left.
        4. imageB_left. Flip the imageB_right and assign it to imageB_left.
      2. When “a” keyboard is pressed
        1. you need to set self.direction = 270
        2. you need to change the image to imageA_left
      3. When “d” keyboard is pressed
        1. you need to set self.direction = 90
        2. you need to change the image to imageA_right
      4. When you flap the wing:
        1. Check the self.direction to decide whether you need to use the left or the right image

Details

Date:
June 19, 2020
Time:
6:00 pm - 7:00 pm
Event Categories:
,