American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python Game Development – Sebastian

September 19, 2023 @ 6:00 pm - 7:00 pm

Today We Did
  1. Reviewed how Gitlab works & fixed problems with pushing / pulling / committing
  2. Created multiple birds each time the create_bird_timer finishes
  3. Place each new bird in a random y coordinate
  4. You can always find the code we wrote in class in my Gitlab repository here:
    https://gitlab.com/gsugiart/tue-6-pm-dragon-birdie/-/tree/TUE-6PM-Sebastian
  5. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Homework: Recall everything we’ve done for our Bird class & objects so far. Try doing the same thing for a new Cloud class, with the main difference being the cloud speed is 6, the cloud image can be either “cloud1.png”, “cloud2.png”, or “cloud3.png”, and the create_cloud_timer is 80.
    1. Start with creating your new Cloud class & ensure all the code is accurate in there
    2. Then we can make the cloud_group and create_cloud_timer (set to 80) in the constructor in the file main.py
    3. Next we can fill out the create_cloud method underneath our create_bird method, make sure it reflects the different timer!
    4. Finally we can call create_cloud() and update our cloud group in the game_loop.
    5. Remember, your clouds won’t be drawn unless you update them in the game loop! (I have a feeling this might be easily forgotten).

Details

Date:
September 19, 2023
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights