American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python Game Development – Sebastian

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

Today We Did
  1. Set up and began flappy bird project
  2. Create & blitted background image
  3. Brain stormed all the sprite’s we’ll need and created their classes
  4. Developed basic Tube class
  5. 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
  6. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Homework: Create a Tube object and add it to a new tube_group in the constructor, then blit it in our game_loop. As we went over in class, specifically you will:
    1. Create Tube object (local variable):
      – for x/y, think: where should the x/y of a downtube be? try different x/y positions until it looks alright
      – for type, pass 1 (represents downward later)
      – for screen, pass self.screen
    2. Create tube_group (attribute):
      – Create pygame Group() object from sprite file
      – Add Tube object from above to tube group
    3. Blit tube group (update)

Details

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