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