American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development – Sebastian

July 24, 2023 @ 7:00 pm - 8:00 pm

Today We Did
  1. Created bird class with constructor and update method
  2. Created sprite group to add instance of bird
  3. Added create_bird() method which creates new bird objects according to our timer
  4. Code from main.py:
  5. Code from bird.py:
  6. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Be sure to create a good commit message and push your homework by next Sunday
  2. Homework:
    1. Make a class named Cloud in a file called cloud.py similar to the one we made for Bird. Use the cloud1.png image. You don’t need to scale this picture. Make it move to the right.
    2. In main.py, make a new group called self.cloud_group. Make an instance of the new cloud and add it to the group (where should this instance be put? Inside the constructor or the game loop?). Then call update for the cloud group in the game loop.

Details

Date:
July 24, 2023
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights