American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development – Sebastian

October 16, 2023 @ 7:00 pm - 8:00 pm

Today We Did
  1. Finished drawing double tubes
  2. Started Coin class
  3. You can always find the code we wrote in class in my Gitlab repository here:
    https://gitlab.com/gsugiart/MON-7PM-FlappyBird/-/tree/Sebastian?ref_type=heads
  4. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Please submit your homework to the corresponding project’s folder in your Google Drive
  2. Homework: Handle how coins collect their images and display them.
    1. Inside coin.py, in the constructor, you will loop through each suffix in Coin.COIN_SUFFIX. Each time, you will create a new pygame image with that suffix (either 1/2/3), and you will append it to our self.images list.
    2. Inside coin.py, blit our coin to the screen and decrement its self.x attribute by the “TUBE_SPEED” global variable.
    3. In main.py, in our game loop, call update on our coin group.

Details

Date:
October 16, 2023
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights