American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development – Sebastian

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

Today We Did
  1. Finished code to load the 3 different kind of coin images
  2. Finished the code to flip coin images
  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. Homework: Load images and begin drawing player
    1. In player.py, in the Player class’s constructor:
      for each suffix in Player.BIRD_SUFFIX:
      image = pygame image using suffix
      add to list
    2. In player.py, in update:
      get next costume, and blit the image it returns
    3. In player.py, in next_costume:
      get new image from self.flying images like we did in coin.py
    4. In main.py, in the constructor for FlappyBird:
      create a bird group, and add a Player object to the bird group
    5. In main.py, in game_loop:
      update bird group

Details

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